mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-20 23:58:31 +01:00
Introduce CIMGUI_NO_EXPORT to stop exporting symbols
Useful when static linking in a library to avoid collisions
This commit is contained in:
@@ -2,8 +2,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
|
#ifdef CIMGUI_NO_EXPORT
|
||||||
|
#define API
|
||||||
|
#else
|
||||||
#define API __declspec(dllexport)
|
#define API __declspec(dllexport)
|
||||||
#ifndef __GNUC__
|
#endif
|
||||||
|
#ifdef __GNUC__
|
||||||
#define snprintf sprintf_s
|
#define snprintf sprintf_s
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user