Commit a7c94e5b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix auth_gssapi compilation.

Do not use array_elements in CREATE_TYPELIB_FOR, as not to force
my_global.h on every plugin. auth_gssapi lived OK without it so far.
parent 14943aae
...@@ -27,7 +27,7 @@ typedef struct st_typelib { /* Different types saved here */ ...@@ -27,7 +27,7 @@ typedef struct st_typelib { /* Different types saved here */
unsigned int *type_lengths; unsigned int *type_lengths;
} TYPELIB; } TYPELIB;
#define CREATE_TYPELIB_FOR(X) { array_elements(X) - 1, "", X, NULL } #define CREATE_TYPELIB_FOR(X) { (unsigned int)(sizeof(X)/sizeof(X[0])) - 1, "", X, NULL }
extern my_ulonglong find_typeset(const char *x, TYPELIB *typelib, extern my_ulonglong find_typeset(const char *x, TYPELIB *typelib,
int *error_position); int *error_position);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment