mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
lws_struct: conditional prototypes make trouble with visibility
Although the code is correct and the symbols should be defined, making some prototypes conditional on cmake defines breaks their visibility when the library is built. They're conditional here to get around use of sqlite3 type in the prototypes where we may not be including sqlite3 headers. Replace the conditional with a grauitous typedef as a forward ref, since it's only referred to via pointer types.
This commit is contained in:
parent
704eaa5e63
commit
14027781cc
1 changed files with 1 additions and 2 deletions
|
@ -242,7 +242,7 @@ LWS_VISIBLE LWS_EXTERN lws_struct_json_serialize_result_t
|
|||
lws_struct_json_serialize(lws_struct_serialize_t *js, uint8_t *buf,
|
||||
size_t len, size_t *written);
|
||||
|
||||
#if defined(LWS_WITH_STRUCT_SQLITE3)
|
||||
typedef struct sqlite3 sqlite3;
|
||||
|
||||
LWS_VISIBLE LWS_EXTERN int
|
||||
lws_struct_sq3_serialize(sqlite3 *pdb, const lws_struct_map_t *schema,
|
||||
|
@ -263,4 +263,3 @@ lws_struct_sq3_open(struct lws_context *context, const char *sqlite3_path,
|
|||
LWS_VISIBLE LWS_EXTERN int
|
||||
lws_struct_sq3_close(sqlite3 **pdb);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue