fix compilation, fixes issue #1184

This commit is contained in:
mrdudz
2020-08-26 13:36:43 +02:00
parent 344aea0669
commit c216b3534b

View File

@@ -14,9 +14,7 @@
/* Define USE_STDIO, when you want to use the stdio functions. /* Define USE_STDIO, when you want to use the stdio functions.
** Do not define it, when you want to use the conio functions. ** Do not define it, when you want to use the conio functions.
*/ */
/*
#define USE_STDIO #define USE_STDIO
*/
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@@ -35,22 +33,23 @@
#define ARRAYSIZE(a) (sizeof (a) / sizeof (a)[0]) #define ARRAYSIZE(a) (sizeof (a) / sizeof (a)[0])
typedef enum {
INT,
CHAR
} TYPE;
typedef union {
int nvalue;
const char *svalue;
} VALUE;
static const struct { static const struct {
const char *input, *format; const char *input, *format;
int rvalue; int rvalue;
enum TYPE { TYPE type1;
INT, VALUE v1;
CHAR TYPE type2;
} type1; VALUE v2;
union {
int nvalue;
const char *svalue;
} v1;
enum TYPE type2;
union {
int nvalue;
const char *svalue;
} v2;
} test_data[] = { } test_data[] = {
/* Input sequences for character specifiers must be less than 80 characters /* Input sequences for character specifiers must be less than 80 characters
** long. These format strings are allowwed a maximum of two assignment ** long. These format strings are allowwed a maximum of two assignment