]> granicus.if.org Git - esp-idf/commitdiff
Ensure that C++ and C compilers get the same preprocessor setup
authorAndreas Pokorny <andreas.pokorny@siemens.com>
Thu, 26 Oct 2017 11:04:41 +0000 (13:04 +0200)
committerAndreas Pokorny <andreas.pokorny@siemens.com>
Thu, 26 Oct 2017 11:04:41 +0000 (13:04 +0200)
CPPFLAGS is applied for both languages while CFLAGS only for C

Signed-off-by: Andreas Pokorny <andreas.pokorny@siemens.com>
components/coap/Makefile.projbuild
components/mbedtls/Makefile.projbuild
components/nghttp/Makefile.projbuild

index e976ee32f6e566c65ef071f39d08ba6cd8fa8195..e900b0f9a14ceb776e1b11e05d15b396623793e3 100644 (file)
@@ -1 +1 @@
-CFLAGS += -DWITH_POSIX
+CPPFLAGS += -DWITH_POSIX
index 51300efd118e59780c56ef870731fc0d3c797d9a..ec9d6f2ce7e9fb095d8fb4327671e023aee5d742 100644 (file)
@@ -1,4 +1,4 @@
 # Anyone compiling mbedTLS code needs the name of the
 # alternative config file
-CFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"'
+CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"'
 
index 5c6ce7fc9b965b0dd55c951c6ed86bf5e55241c9..d17beccada8875aa21b6c400050b04499168af95 100644 (file)
@@ -1 +1 @@
-CFLAGS += -DHAVE_CONFIG_H
+CPPFLAGS += -DHAVE_CONFIG_H