mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-12 12:48:30 +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>
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#ifdef CIMGUI_NO_EXPORT
|
||||
#define API
|
||||
#else
|
||||
#define API __declspec(dllexport)
|
||||
#ifndef __GNUC__
|
||||
#endif
|
||||
#ifdef __GNUC__
|
||||
#define snprintf sprintf_s
|
||||
#endif
|
||||
#else
|
||||
|
Reference in New Issue
Block a user