Skip to content

Commit

Permalink
Remove unnecessary definitions of DDMDV2 (it's only used in elfobj.c)
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Apr 2, 2015
1 parent 2322240 commit ba1f9f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/posix.mak
Expand Up @@ -99,7 +99,7 @@ MMD=-MMD -MF $(basename $@).deps
# Default compiler flags for all source files
CFLAGS := $(WARNINGS) \
-fno-exceptions -fno-rtti \
-D__pascal= -DMARS=1 -DTARGET_$(OS_UPCASE)=1 -DDM_TARGET_CPU_$(TARGET_CPU)=1 -DDMDV2=1 \
-D__pascal= -DMARS=1 -DTARGET_$(OS_UPCASE)=1 -DDM_TARGET_CPU_$(TARGET_CPU)=1 \

ifneq (,$(DEBUG))
ENABLE_DEBUG := 1
Expand All @@ -118,10 +118,10 @@ CFLAGS += -O2
endif

# Uniqe extra flags if necessary
DMD_FLAGS := -I$(ROOT) -Wuninitialized
GLUE_FLAGS := -DDMDV2=1 -I$(ROOT) -I$(TK) -I$(C)
BACK_FLAGS := -DDMDV2=1 -I$(ROOT) -I$(TK) -I$(C) -I.
ROOT_FLAGS := -DDMDV2=1 -I$(ROOT)
DMD_FLAGS := -I$(ROOT) -Wuninitialized
GLUE_FLAGS := -I$(ROOT) -I$(TK) -I$(C)
BACK_FLAGS := -I$(ROOT) -I$(TK) -I$(C) -I. -DDMDV2=1
ROOT_FLAGS := -I$(ROOT)


DMD_OBJS = \
Expand Down
2 changes: 1 addition & 1 deletion src/win32.mak
Expand Up @@ -123,7 +123,7 @@ BFLAGS=
# Compile flags
CFLAGS=-I$(INCLUDE) $(OPT) $(CFLAGS) $(DEBUG) -cpp -DTARGET_WINDOS=1 -DDM_TARGET_CPU_X86=1
# Compile flags for modules with backend/toolkit dependencies
MFLAGS=-I$C;$(TK) $(OPT) -DMARS -cpp $(DEBUG) -e -wx -DTARGET_WINDOS=1 -DDM_TARGET_CPU_X86=1 -DDMDV2=1
MFLAGS=-I$C;$(TK) $(OPT) -DMARS -cpp $(DEBUG) -e -wx -DTARGET_WINDOS=1 -DDM_TARGET_CPU_X86=1
# Recursive make
DMDMAKE=$(MAKE) -fwin32.mak C=$C TK=$(TK) ROOT=$(ROOT) HOST_DC="$(HOST_DC)"

Expand Down

0 comments on commit ba1f9f5

Please sign in to comment.