Skip to content

Commit 9842dee

Browse files
committed
fix '__declspec' attributes
1 parent 96320ce commit 9842dee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/zstdruby/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require "mkmf"
22

33
$CFLAGS = '-I. -O3 -std=c99'
4+
$CPPFLAGS += " -fdeclspec" if CONFIG['CXX'] =~ /clang/
45

56
Dir.chdir File.expand_path('..', __FILE__) do
67
$srcs = Dir['**/*.c']

0 commit comments

Comments
 (0)