bindings: add C include guard, also wrap typedefs in extern

This commit is contained in:
mappu 2024-08-06 10:23:08 +12:00
parent 48ab3420ff
commit ecdab8cce6

View File

@ -1,12 +1,16 @@
#ifndef BINDING_H
#define BINDING_H
#ifdef __cplusplus
extern "C" {
#endif
typedef void* PQApplication; typedef void* PQApplication;
typedef void* PQPushButton; typedef void* PQPushButton;
typedef void* PQWidget; typedef void* PQWidget;
#ifdef __cplusplus
extern "C" {
#endif
PQApplication QApplication_new(int* argc, char** argv); PQApplication QApplication_new(int* argc, char** argv);
PQWidget QWidget_new(); PQWidget QWidget_new();
@ -22,3 +26,5 @@ int QApplication_exec(PQApplication self);
#ifdef __cplusplus #ifdef __cplusplus
} /* extern C */ } /* extern C */
#endif #endif
#endif