-# TODO(ajwong):
-# Original conditional
-# ['clang == 1 or (OS == "win" and (MSVS_VERSION == "2013" or MSVS_VERSION == "2013e"))',
- if (is_clang) {
- defines += [
- "inline=__inline",
- "strtoll=_strtoi64",
- "_ISOC99_SOURCE",
- "_LARGEFILE_SOURCE",
- "HAVE_AV_CONFIG_H",
- "strtod=avpriv_strtod",
- "snprintf=avpriv_snprintf",
- "_snprintf=avpriv_snprintf",
- "vsnprintf=avpriv_vsnprintf",
- ]
- include_dirs += [
- "chromium/include/win"
- ]
- # TODO(dalecurtis): We should fix these. http://crbug.com/154421
- cflags += [
- "/wd4996", # 'function': was declared deprecated
- "/wd4018", # 'expression': signed/unsigned mismatch
- "/wd4090", # 'operation' : different 'modifier' qualifiers
- "/wd4305", # 'identifier': truncation from 'type1' to 'type2'
- "/wd4133", # 'type' : incompatible types - from 'type1' to 'type2'
- "/wd4146", # unary minus operator applied to unsigned type, result
- # still unsigned
- "/wd4554", # 'operator' : check operator precedence for possible
- # error; use parentheses to clarify precedence
- "/wd4028", # formal parameter 'number' different from declaration
- "/wd4334", # 'operator' : result of 32-bit shift implicitly
- # converted to 64 bits (was 64-bit shift intended?)
- "/wd4101", # 'identifier' : unreferenced local variable
- "/wd4102", # 'label' : unreferenced label
- "/wd4116", # unnamed type definition in parentheses
- "/wd4307", # 'operator' : integral constant overflow
- "/wd4273", # 'function' : inconsistent DLL linkage
- "/wd4005", # 'identifier' : macro redefinition
- "/wd4056", # overflow in floating point constant arithmetic
- "/wd4756", # overflow in constant arithmetic
- ]
+ defines += [
+ "inline=__inline",
+ "strtoll=_strtoi64",
+ "_ISOC99_SOURCE",
+ "_LARGEFILE_SOURCE",
+ "HAVE_AV_CONFIG_H",
+ "strtod=avpriv_strtod",
+ "snprintf=avpriv_snprintf",
+ "_snprintf=avpriv_snprintf",
+ "vsnprintf=avpriv_vsnprintf",
+ ]
+
+ include_dirs += [
+ "chromium/include/win"
+ ]
+ # TODO(dalecurtis): We should fix these. http://crbug.com/154421
+ cflags += [
+ "/wd4996", # 'function': was declared deprecated
+ "/wd4018", # 'expression': signed/unsigned mismatch
+ "/wd4090", # 'operation' : different 'modifier' qualifiers
+ "/wd4305", # 'identifier': truncation from 'type1' to 'type2'
+ "/wd4133", # 'type' : incompatible types - from 'type1' to 'type2'
+ "/wd4146", # unary minus operator applied to unsigned type, result
+ # still unsigned
+ "/wd4554", # 'operator' : check operator precedence for possible
+ # error; use parentheses to clarify precedence
+ "/wd4028", # formal parameter 'number' different from declaration
+ "/wd4334", # 'operator' : result of 32-bit shift implicitly
+ # converted to 64 bits (was 64-bit shift intended?)
+ "/wd4101", # 'identifier' : unreferenced local variable
+ "/wd4102", # 'label' : unreferenced label
+ "/wd4116", # unnamed type definition in parentheses
+ "/wd4307", # 'operator' : integral constant overflow
+ "/wd4273", # 'function' : inconsistent DLL linkage
+ "/wd4005", # 'identifier' : macro redefinition
+ "/wd4056", # overflow in floating point constant arithmetic
+ "/wd4756", # overflow in constant arithmetic
+ ]