mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
bindings: add C include guard, also wrap typedefs in extern
This commit is contained in:
parent
48ab3420ff
commit
ecdab8cce6
12
binding.h
12
binding.h
@ -1,12 +1,16 @@
|
||||
#ifndef BINDING_H
|
||||
#define BINDING_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void* PQApplication;
|
||||
|
||||
typedef void* PQPushButton;
|
||||
|
||||
typedef void* PQWidget;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
PQApplication QApplication_new(int* argc, char** argv);
|
||||
|
||||
PQWidget QWidget_new();
|
||||
@ -22,3 +26,5 @@ int QApplication_exec(PQApplication self);
|
||||
#ifdef __cplusplus
|
||||
} /* extern C */
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user