making config.h C compatible

This commit is contained in:
Syping 2018-06-15 05:04:20 +02:00
parent 196cb8bc55
commit caaa6a1d85
2 changed files with 6 additions and 0 deletions

View File

@ -18,7 +18,10 @@
#ifndef CONFIG_H
#define CONFIG_H
#if __cplusplus
#include <QString>
#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

View File

@ -26,6 +26,7 @@ TARGET = gta5view
TEMPLATE = app
HEADERS += config.h
PRECOMPILED_HEADER += config.h
SOURCES += main.cpp \
AboutDialog.cpp \