diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-04-04 22:15:51 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-04-06 10:36:30 +0000 |
commit | 72de2d7c140a50fd5ef87f0168d39f47b600efda (patch) | |
tree | 84036df8d6e55146a705307c197dcafd742bd78b /examples/helloworld-complex/src/main.cpp | |
parent | 0ec4baf922ce4547ec7f61dba6f9369874834d18 (diff) |
Fix helloworld-complex in "profiling" build on Windows
_DEBUG macro is used by the MSVC compiler internally to
enable/disable some features (like debug iterators) and
defining it manually leads to obscure compilation errors
Change-Id: I10e79ccbbfd40fe378fe9b754ecfc6066497eee5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples/helloworld-complex/src/main.cpp')
-rw-r--r-- | examples/helloworld-complex/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/helloworld-complex/src/main.cpp b/examples/helloworld-complex/src/main.cpp index 691c401e5..8827c1e5e 100644 --- a/examples/helloworld-complex/src/main.cpp +++ b/examples/helloworld-complex/src/main.cpp @@ -67,9 +67,9 @@ int main() { someUsefulFunction(); -#ifdef _DEBUG +#if defined(HAS_DEBUG) puts("Hello World! (debug version)"); -#else +#elif defined(HAS_RELEASE) puts("Hello World! (release version)"); #endif #ifdef HAS_SPECIAL_FEATURE |