Skip to content
Snippets Groups Projects
Commit 65a7ebc8 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Avoid creating empty structs.

Rev: src/errors.h:1.18
parent 9036e835
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,11 @@ struct PIKE_CONCAT(NAME,_error_struct) { \ ...@@ -17,6 +17,11 @@ struct PIKE_CONCAT(NAME,_error_struct) { \
}; };
#define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ; #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ;
/* Some compilers (eg cl) don't like empty structs... */
#undef EMPTY
#define EMPTY ERR_VAR(INT_TYPE, int, PIKE_T_INT, ignored__)
#endif /* ERR_EXT_DECLARE */ #endif /* ERR_EXT_DECLARE */
#ifdef ERR_SETUP #ifdef ERR_SETUP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment