mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-16 06:18:30 +01:00
40 lines
630 B
C
40 lines
630 B
C
|
|
#include <stdio.h>
|
|
|
|
#if defined _WIN32 || defined __CYGWIN__
|
|
#ifdef CIMGUI_NO_EXPORT
|
|
#define API
|
|
#else
|
|
#define API __declspec(dllexport)
|
|
#endif
|
|
#ifndef __GNUC__
|
|
#define snprintf sprintf_s
|
|
#endif
|
|
#else
|
|
#define API
|
|
#endif
|
|
|
|
#if defined __cplusplus
|
|
#define EXTERN extern "C"
|
|
#else
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#define EXTERN extern
|
|
#endif
|
|
|
|
#define CIMGUI_API EXTERN API
|
|
#define CONST const
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
typedef unsigned __int64 ImU64;
|
|
#else
|
|
typedef unsigned long long ImU64;
|
|
#endif
|
|
|
|
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
#include "imgui_structs.h"
|
|
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
|
|
#include "auto_funcs.h"
|