fix cpp compilation: use non const typedef
This commit is contained in:
parent
4f47d8b945
commit
ea3b85cdb1
1 changed files with 4 additions and 0 deletions
4
qe.h
4
qe.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue