Set constant macros with define.
This commit is contained in:
parent
0ab305156b
commit
c8dee57278
2
Makefile
2
Makefile
|
@ -177,7 +177,7 @@ endif
|
||||||
|
|
||||||
CFLAGS += -Wall $(OPTIMIZE_FLAG) -g -I. -pedantic
|
CFLAGS += -Wall $(OPTIMIZE_FLAG) -g -I. -pedantic
|
||||||
ifeq ($(CXX_BUILD), 1)
|
ifeq ($(CXX_BUILD), 1)
|
||||||
CFLAGS += -std=c++0x -xc++
|
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
|
||||||
else
|
else
|
||||||
ifneq ($(findstring icc,$(CC)),)
|
ifneq ($(findstring icc,$(CC)),)
|
||||||
CFLAGS += -std=c99 -D_GNU_SOURCE
|
CFLAGS += -std=c99 -D_GNU_SOURCE
|
||||||
|
|
|
@ -145,7 +145,7 @@ endif
|
||||||
|
|
||||||
CFLAGS += -Wall -O3 -I.
|
CFLAGS += -Wall -O3 -I.
|
||||||
ifeq ($(CXX_BUILD), 1)
|
ifeq ($(CXX_BUILD), 1)
|
||||||
CFLAGS += -std=c++0x -xc++
|
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
|
||||||
else
|
else
|
||||||
CFLAGS += -std=gnu99
|
CFLAGS += -std=gnu99
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -15,10 +15,6 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __STDC_CONSTANT_MACROS
|
|
||||||
#define __STDC_CONSTANT_MACROS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue