Ensure that C++ and C compilers get the same preprocessor setup

CPPFLAGS is applied for both languages while CFLAGS only for C

Signed-off-by: Andreas Pokorny <andreas.pokorny@siemens.com>
This commit is contained in:
Andreas Pokorny 2017-10-26 13:04:41 +02:00
parent 2c95a77cf9
commit 2a1906cf50
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
CFLAGS += -DWITH_POSIX
CPPFLAGS += -DWITH_POSIX

View 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"'

View File

@ -1 +1 @@
CFLAGS += -DHAVE_CONFIG_H
CPPFLAGS += -DHAVE_CONFIG_H