aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/ninja/Ninja.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 3a46af5..a5fdb0d 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -450,6 +450,18 @@ namespace backend
defines += " /DWIN32 /D_WIN32";
break;
}
+
+#if OS_TYPE == OS_TYPE_WINDOWS
+ switch(libraryType)
+ {
+ case LibraryType::EXECUTABLE:
+ defines += " _CONSOLE";
+ break;
+ case LibraryType::STATIC:
+ defines += " _LIB";
+ break;
+ }
+#endif
if(!defines.empty())
printf("Custom define: %s\n", defines.c_str());