Index: third_party/libexif/BUILD.gn |
diff --git a/third_party/libexif/BUILD.gn b/third_party/libexif/BUILD.gn |
index 3f88f1c93edfdc992403f7d650b8a0813af6bc23..ea9ca90ce2a1ac357967938b4ee50c09ee8dcbb8 100644 |
--- a/third_party/libexif/BUILD.gn |
+++ b/third_party/libexif/BUILD.gn |
@@ -57,11 +57,16 @@ if (!is_linux || is_chromeos) { |
# TODO(GYP): Additional options for non-Windows platforms. |
if (is_win) { |
- defines = [ |
- # This seems like a hack, but this is what WebKit Win does. |
- "snprintf=_snprintf", |
- "inline=__inline", |
- ] |
+ import("//build/config/win/visual_studio_version.gni") |
+ |
+ if (visual_studio_version == "2013" || visual_studio_version == "2013e") { |
+ defines = [ |
+ # This seems like a hack, but this is what WebKit Win does. |
+ # VS 2015 supports these natively so they cannot be #defines. |
+ "snprintf=_snprintf", |
+ "inline=__inline", |
+ ] |
+ } |
ldflags = [ "/DEF:" + rebase_path("libexif.def") ] |