From e3001fb986f39c08c661213afa68608774d2a321 Mon Sep 17 00:00:00 2001 From: Sepehr Taghdisian Date: Mon, 11 Aug 2014 20:43:24 +0430 Subject: [PATCH] project update --- imgui.cpp | 6 ++++++ libimgui.pro | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 libimgui.pro diff --git a/imgui.cpp b/imgui.cpp index e5aca50ca..1242b02e6 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -161,6 +161,12 @@ #include // vsnprintf #include // memset +#ifdef __GNUC__ + #include + #include +#endif + + #ifdef _MSC_VER #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #endif diff --git a/libimgui.pro b/libimgui.pro new file mode 100644 index 000000000..c153b4e38 --- /dev/null +++ b/libimgui.pro @@ -0,0 +1,20 @@ +TEMPLATE = lib +CONFIG += static +CONFIG -= app_bundle +CONFIG -= qt +CONFIG -= warn_on + +CONFIG(release, debug|release) { + TARGET = imgui +} + +CONFIG(debug, debug|release) { + TARGET = imgui-dbg +} + +SOURCES += \ + imgui.cpp + +HEADERS += \ + imgui.h \ + imconfig.h