diff options
| author | Tom Black <[email protected]> | 2017-03-07 23:37:37 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-03-07 23:37:37 -0500 |
| commit | 7c357dc1ec1673c988a36eddaad73d181f616e82 (patch) | |
| tree | 41fffdb8554973eb384a972258a58dd745010f2e /ext | |
| parent | 89902fef0fe054641273b18d75c64c1f27f699bf (diff) | |
| download | ruby2d-7c357dc1ec1673c988a36eddaad73d181f616e82.tar.gz ruby2d-7c357dc1ec1673c988a36eddaad73d181f616e82.zip | |
Update to C11 standard for native extension
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ruby2d/extconf.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ruby2d/extconf.rb b/ext/ruby2d/extconf.rb index 592ccaa..9e3c091 100644 --- a/ext/ruby2d/extconf.rb +++ b/ext/ruby2d/extconf.rb @@ -69,19 +69,19 @@ elsif RUBY_PLATFORM =~ /linux/ exit end - $CFLAGS << ' -std=c99' - + $CFLAGS << ' -std=c11' + # Windows / MinGW elsif RUBY_PLATFORM =~ /mingw/ # Add flags - $CFLAGS << ' -std=c99 -I/usr/local/include' + $CFLAGS << ' -std=c11 -I/usr/local/include' $LDFLAGS << ' -Dmain=SDL_main -L/usr/local/lib -lmingw32 -lsimple2d -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lopengl32 -lglew32 -mwindows' end unless RUBY_PLATFORM =~ /mingw/ # Simple 2D installed, check version check_s2d_version - + # Add flags $LDFLAGS << ' ' << `simple2d --libs` end |
