From caaa6a1d8579390aa05699847859416c63a22181 Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 15 Jun 2018 05:04:20 +0200 Subject: [PATCH] making config.h C compatible --- config.h | 5 +++++ gta5view.pro | 1 + 2 files changed, 6 insertions(+) diff --git a/config.h b/config.h index 23a6a09..2381763 100644 --- a/config.h +++ b/config.h @@ -18,7 +18,10 @@ #ifndef CONFIG_H #define CONFIG_H + +#if __cplusplus #include +#endif #ifndef GTA5SYNC_APPVENDOR #define GTA5SYNC_APPVENDOR "Syping" @@ -44,6 +47,7 @@ #define GTA5SYNC_APPVER "1.6.0" #endif +#if __cplusplus #ifdef GTA5SYNC_BUILDTYPE_REL #ifndef GTA5SYNC_BUILDTYPE #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Release") @@ -146,5 +150,6 @@ #ifndef GTA5SYNC_BUILDSTRING #define GTA5SYNC_BUILDSTRING QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER) #endif +#endif #endif // CONFIG_H diff --git a/gta5view.pro b/gta5view.pro index 60b4ab9..2a875da 100644 --- a/gta5view.pro +++ b/gta5view.pro @@ -26,6 +26,7 @@ TARGET = gta5view TEMPLATE = app HEADERS += config.h +PRECOMPILED_HEADER += config.h SOURCES += main.cpp \ AboutDialog.cpp \