summaryrefslogtreecommitdiff
path: root/src/common/console.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-02 11:54:36 +0100
committerHaru <haru@dotalux.com>2015-12-02 11:55:16 +0100
commit300668dce8699accfb3e8cbce6db55b937230bb7 (patch)
tree5e9f28572c21e4dfe0afc8b43640109ac4db6337 /src/common/console.h
parent9be1d84752ba2ed733ae29d68304f5825cf29162 (diff)
downloadhercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.gz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.bz2
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.xz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.zip
Fixed compile errors on very old PACKETVERs
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/console.h')
-rw-r--r--src/common/console.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/console.h b/src/common/console.h
index ef6db0cb4..102a1beaf 100644
--- a/src/common/console.h
+++ b/src/common/console.h
@@ -50,8 +50,8 @@ struct CParseEntry {
} u;
};
-#ifdef CONSOLE_INPUT
struct console_input_interface {
+#ifdef CONSOLE_INPUT
/* vars */
SPIN_LOCK ptlock;/* parse thread lock */
rAthread *pthread;/* parse thread */
@@ -75,10 +75,10 @@ struct console_input_interface {
void (*parse_list_subs) (struct CParseEntry *cmd, unsigned char depth);
void (*addCommand) (char *name, CParseFunc func);
void (*setSQL) (Sql *SQL_handle);
-};
-#else
-struct console_input_interface;
+#else // not CONSOLE_INPUT
+ UNAVAILABLE_STRUCT;
#endif
+};
struct console_interface {
void (*init) (void);