Skip to content

Commit d995228

Browse files
author
roman_yakovenko
committed
allow pygccxml to run on FreeBSD
1 parent d70c05c commit d995228

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/history/history.rest

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ SVN Version
5656
right relative paths and paths with spaces. Many thanks to Alejandro Dubrovsky
5757
for providing the patch.
5858

59+
10. Small fix, which allows pygccxml to be usable on FreeBSD too: replace
60+
`elif sys.platform == 'linux2' or sys.platform == 'darwin'` with `os.name == 'posix'`,
61+
as suggested by `Jakub Wilk <http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/572d2286ca0b2cec?pli=1>`
62+
5963
-----------
6064
Version 1.0
6165
-----------

pygccxml/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
#TODO:
3434
# 1. Add "explicit" property for constructors
3535

36-
__version__ = '1.5.0'
36+
__version__ = '1.5.1'
3737

3838
__revision__ = 1080

pygccxml/parser/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def raise_on_wrong_settings( self ):
176176
if sys.platform == 'win32':
177177
gccxml_name = 'gccxml' + '.exe'
178178
environment_var_delimiter = ';'
179-
elif sys.platform == 'linux2' or sys.platform == 'darwin':
179+
elif os.name == 'posix':
180180
gccxml_name = 'gccxml'
181181
environment_var_delimiter = ':'
182182
else:

0 commit comments

Comments
 (0)