Skip to content

Commit

Permalink
Fix build on MSVC
Browse files Browse the repository at this point in the history
The inline keyword is available only for C++ in MSVC.
So we need to use Microsoft specific __inline.
  • Loading branch information
accel2k committed Mar 15, 2017
1 parent f7d3671 commit c39f161
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ if libtype == 'shared'
endif
endif

# The inline keyword is available only for C++ in MSVC.
# So we need to use Microsoft specific __inline.
if host_system == 'windows'
if cc.get_id() == 'msvc'
conf.set('inline', '__inline')
endif
endif

# Dependencies
dl_dep = cc.find_library('dl', required: false)
gl_dep = dependency('gl', required: false)
Expand Down

0 comments on commit c39f161

Please sign in to comment.