]> granicus.if.org Git - taglib/commitdiff
Improved the CMake check for float/double format. (Intel compiler support)
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 6 Aug 2014 11:57:04 +0000 (20:57 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 6 Aug 2014 11:57:04 +0000 (20:57 +0900)
cmake/TestFloatFormat.c

index 5f18aafb88bf6b3dd00653314787f5ec33c559fd..4a7b32e4799f2a7615fda98751034c1d74464dc4 100644 (file)
@@ -1,5 +1,7 @@
-int main()
+int main(int argc, char **argv)
 {
+  int ret = 0;
+
   double bin1[] = {
     // "*TAGLIB*" encoded as a little-endian floating-point number
     (double)3.9865557444897601e-105, (double)0.0
@@ -8,6 +10,8 @@ int main()
     // "*TL*" encoded as a little-endian floating-point number
     (float)1.81480400e-013, (float)0.0
   };
+  ret += ((int*)bin1)[argc];
+  ret += ((int*)bin2)[argc];
 
-  return 0;
+  return ret;
 }