Skip to content

Commit

Permalink
fix failing vector digitizer on mac (trac 3487)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Mar 25, 2020
1 parent 59c9ae5 commit e3a1573
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/python/ctypes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ proj_INC = $(PROJINC)
vector_INC = $(VECT_INC) $(VECT_CFLAGS)
vedit_INC = $(VECT_INC) $(VECT_CFLAGS)

MAC_FLAGS = ""
ifneq ($(findstring darwin,$(ARCH)),)
MAC_FLAGS = "-D_Nullable="
endif

SED = sed
CTYPESGEN = ./ctypesgen.py
CTYPESFLAGS = --cpp "$(CC) -E $(CPPFLAGS) $(LFS_CFLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -D__GLIBC_HAVE_LONG_LONG"
CTYPESFLAGS = --cpp "$(CC) -E $(CPPFLAGS) $(LFS_CFLAGS) $(MAC_FLAGS) $(EXTRA_CFLAGS) $(NLS_CFLAGS) $(DEFS) $(EXTRA_INC) $(INC) -D__GLIBC_HAVE_LONG_LONG"
EXTRA_CLEAN_FILES := $(wildcard ctypesgencore/*.pyc) $(wildcard ctypesgencore/*/*.pyc)

ifneq ($(MINGW),)
Expand Down

0 comments on commit e3a1573

Please sign in to comment.