1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove leftover pre-C89 code (re: a1f5c992)

I'd forgotten to check for uses of the __STDC__ macro. This is
defined on all C compilers that support C89/C90 or later standards.
So we can remove all fallback code disabled by that macro.
This commit is contained in:
Martijn Dekker 2021-12-27 05:43:07 +00:00
parent e072e7c170
commit 2027648f1a
12 changed files with 4 additions and 104 deletions

View file

@ -33,11 +33,7 @@
#endif
#define SH_PLUGIN_VERSION AST_PLUGIN_VERSION(20111111L)
#if __STDC__
#define SHLIB(m) unsigned long plugin_version(void) { return SH_PLUGIN_VERSION; }
#else
#define SHLIB(m) unsigned long plugin_version() { return SH_PLUGIN_VERSION; }
#endif
#ifndef SH_VERSION
# define Shell_t void