diff options
author | Alexander Mezin <mezin.alexander@gmail.com> | 2014-06-29 17:33:48 +0700 |
---|---|---|
committer | Daniel Martin <consume.noise@gmail.com> | 2014-07-28 20:36:32 +0200 |
commit | 70ea5da64b34336bb0916f6c325545cb50746159 (patch) | |
tree | 500ab7a26f64c95b383fba9f4f285275681d6e8a | |
parent | 7e6af51b4e984f661fe4f21596cab5cb8ee15ea0 (diff) |
xcb.h: add 'struct' before xcb_setup_t, xcb_query_extension_reply_t
These structs are typedef'ed in xproto.h, so in xcb.h these types
(without 'struct') are actually undefined.
GCC reports this as error when building precompiled header.
Signed-off-by: Alexander Mezin <mezin.alexander@gmail.com>
Reviewed-by: Peter Harris <pharris@opentext.com>
-rw-r--r-- | src/xcb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -397,7 +397,7 @@ void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence); * The result must not be freed. This storage is managed by the cache * itself. */ -const xcb_query_extension_reply_t *xcb_get_extension_data(xcb_connection_t *c, xcb_extension_t *ext); +const struct xcb_query_extension_reply_t *xcb_get_extension_data(xcb_connection_t *c, xcb_extension_t *ext); /** * @brief Prefetch of extension data into the extension cache @@ -433,7 +433,7 @@ void xcb_prefetch_extension_data(xcb_connection_t *c, xcb_extension_t *ext); * * The result must not be freed. */ -const xcb_setup_t *xcb_get_setup(xcb_connection_t *c); +const struct xcb_setup_t *xcb_get_setup(xcb_connection_t *c); /** * @brief Access the file descriptor of the connection. |