fix cpp compilation: use non const typedef

This commit is contained in:
Charlie Gordon 2015-09-16 21:44:12 +00:00
commit ea3b85cdb1

4
qe.h
View file

@ -539,7 +539,11 @@ int buf_put_keys(buf_t *out, unsigned int *keys, int nb_keys);
#define MAX_CHAR_BYTES 6
typedef struct CharsetDecodeState CharsetDecodeState;
#if defined(__cplusplus)
typedef struct QECharset QECharset;
#else
typedef const struct QECharset QECharset;
#endif
struct QECharset {
const char *name;