libui/ui.h

32 lines
719 B
C
Raw Normal View History

2015-08-16 16:14:46 -05:00
// 6 april 2015
#ifndef uiprivIncludeGuard_ui_h
#define uiprivIncludeGuard_ui_h
2015-08-16 16:14:46 -05:00
#include <stddef.h>
#include <stdint.h>
2015-11-16 09:55:44 -06:00
#ifdef __cplusplus
extern "C" {
#endif
#ifdef uiprivBuildingLibui
#ifdef _WIN32
#define uiprivExtern __declspec(dllexport) extern
#else
#define uiprivExtern __attribute__((visibility("default"))) extern
#endif
#else
// TODO add __declspec(dllimport) on windows, but only if not static#define uiprivExtern extern
2015-08-16 16:14:46 -05:00
#endif
// C++ is really really really really really really dumb about enums, so screw that and just make them anonymous
// This has the advantage of being ABI-able should we ever need an ABI...
#define uiprivEnum(s) typedef unsigned int s; enum
2016-11-27 16:44:52 -06:00
2015-11-16 09:55:44 -06:00
#ifdef __cplusplus
}
#endif
2015-08-16 16:14:46 -05:00
#endif