Commit 78562a3d authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #2532 from opentable/master

Configuration specific preprocessor definition can generate a lot of warning
parents c38f2674 ed4f52fd
......@@ -49,7 +49,7 @@ module Pod
specs_by_config = specs_scoped_by_configuration(common_specs, specs_by_configuration)
specs_by_config.each do |config, specs|
result << "// #{config} build configuration\n"
result << "#ifdef #{config.gsub(' ', '_').upcase}\n\n"
result << "#ifdef #{config.gsub(/[^a-zA-Z0-9_]/, '_').upcase}\n\n"
specs.each { |spec| result << spec_defines(spec, 1) }
result << "#endif\n"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment