Skip to content

Commit e4acde7

Browse files
committed
Removed any X11 dependency for OSX
1 parent c6156bf commit e4acde7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wrapper/SWIG_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,8 @@ def OSFilterHeaders(self, HXX_FILES):
12011201
HXX_TO_EXCLUDE.append('InterfaceGraphic_Cextern.hxx')
12021202
HXX_TO_EXCLUDE.append('Xw_Cextern.hxx')
12031203
HXX_TO_EXCLUDE.append('OSD_WNT_1.hxx')
1204-
for hxx_file in HXX_FILES: # Under Windows, remove all X11/Xfw headers
1204+
if sys.platform != 'linux2':
1205+
for hxx_file in HXX_FILES: # Under OSX and Windows, remove all X11/Xfw headers
12051206
if ('X11' in hxx_file) or ('XWD' in hxx_file):
12061207
HXX_TO_EXCLUDE.append(hxx_file)
12071208
if len(HXX_FILES) == 0:

0 commit comments

Comments
 (0)