Skip to content

Commit

Permalink
Add a define to unbreak compilation with glib under MSVC on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
stump committed Nov 27, 2010
1 parent 9ba0b76 commit 03029b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setup.py
Expand Up @@ -301,6 +301,8 @@ def def_split(x):
if os.name == 'nt':
# Windows systems: we just know what the OpenGL library is.
gl_info = {'libraries': ['opengl32']}
# And glib needs a slight hack to work correctly.
glib_info['define_macros'].append(('inline', '__inline'))
else:
# Other systems: we ask pkg-config.
gl_info = pc_info('gl')
Expand Down

0 comments on commit 03029b2

Please sign in to comment.