Change pre-defined macro from __GCC__ to __GNUC__

This commit is contained in:
amai2012 2019-02-03 21:56:48 +01:00
parent 74f3e4cce2
commit c9d77db39a
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ def scanPackage(workPath, cppcheck, jobs):
libraries += ' --library=zlib'
# if hasInclude('temp', ['<boost/']):
# libraries += ' --library=boost'
options = jobs + libraries + ' --library=gnu -D__GCC__ --check-library --inconclusive --enable=style,information --platform=unix64 --template=daca2 -rp=temp temp'
# Reference for GNU C: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
options = jobs + libraries + ' --library=gnu -D__GNUC__ --check-library --inconclusive --enable=style,information --platform=unix64 --template=daca2 -rp=temp temp'
cmd = 'nice ' + cppcheck + ' ' + options
print(cmd)
startTime = time.time()