Skip to content

Commit

Permalink
Merge pull request #112 from accel2k/fix-msvc-build
Browse files Browse the repository at this point in the history
Fix build on MSVC
  • Loading branch information
ebassi committed Mar 19, 2017
2 parents ab10a79 + c39f161 commit 3f932ae
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 3f932ae

Please sign in to comment.