stdint.h fixes for MSVS 2005/2008
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 18 Jan 2017 19:30:45 +0000 (06:30 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 18 Jan 2017 19:33:33 +0000 (06:33 +1100)
This adds a new msvc2005_int.h header file which is "force included"
as needed by the MSVS project file.

Patch-from: lvqcl <lvqcl.mail@gmail.com>

29 files changed:
examples/c/decode/file/example_c_decode_file.vcproj
examples/c/encode/file/example_c_encode_file.vcproj
examples/cpp/decode/file/example_cpp_decode_file.vcproj
examples/cpp/encode/file/example_cpp_encode_file.vcproj
include/FLAC/ordinals.h
include/share/Makefile.am
include/share/compat.h
src/flac/flac.vcproj
src/flac/iffscan.vcproj
src/libFLAC++/libFLAC++_dynamic.vcproj
src/libFLAC++/libFLAC++_static.vcproj
src/libFLAC/libFLAC_dynamic.vcproj
src/libFLAC/libFLAC_static.vcproj
src/metaflac/metaflac.vcproj
src/share/getopt/getopt_static.vcproj
src/share/grabbag/grabbag_static.vcproj
src/share/replaygain_analysis/replaygain_analysis_static.vcproj
src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj
src/share/utf8/utf8_static.vcproj
src/share/win_utf8_io/win_utf8_io_static.vcproj
src/test_grabbag/cuesheet/test_cuesheet.vcproj
src/test_grabbag/picture/test_picture.vcproj
src/test_libFLAC++/test_libFLAC++.vcproj
src/test_libFLAC/test_libFLAC.vcproj
src/test_libs_common/test_libs_common_static.vcproj
src/test_seeking/test_seeking.vcproj
src/test_streams/test_streams.vcproj
src/utils/flacdiff/flacdiff.vcproj
src/utils/flactimer/flactimer.vcproj

index 15f108c..ddd20bc 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index fb08db0..26f0e9e 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 7463bca..59e735d 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 333b203..f81949f 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 8018afe..75b830d 100644 (file)
  * the 1999 ISO C Standard header file <stdint.h>.
  */
 
-typedef __int8 FLAC__int8;
-typedef uint32_t __int8 FLAC__uint8;
-
-typedef __int16 FLAC__int16;
-typedef __int32 FLAC__int32;
-typedef __int64 FLAC__int64;
-typedef uint32_t __int16 FLAC__uint16;
-typedef uint32_t __int32 FLAC__uint32;
-typedef uint32_t __int64 FLAC__uint64;
+typedef signed __int8 FLAC__int8;
+typedef signed __int16 FLAC__int16;
+typedef signed __int32 FLAC__int32;
+typedef signed __int64 FLAC__int64;
+typedef unsigned __int8 FLAC__uint8;
+typedef unsigned __int16 FLAC__uint16;
+typedef unsigned __int32 FLAC__uint32;
+typedef unsigned __int64 FLAC__uint64;
 
 #else
 
index 2d8ca50..079c169 100644 (file)
@@ -9,6 +9,7 @@ EXTRA_DIST = \
        getopt.h \
        grabbag.h \
        macros.h \
+       msvc2005_int.h \
        private.h \
        replaygain_analysis.h \
        replaygain_synthesis.h \
index 2083f3a..94edbd2 100644 (file)
 #    ifndef UINT32_MAX
 #      define UINT32_MAX _UI32_MAX
 #    endif
-     typedef unsigned __int64 uint64_t;
-     typedef unsigned __int32 uint32_t;
-     typedef unsigned __int16 uint16_t;
-     typedef unsigned __int8 uint8_t;
-     typedef __int64 int64_t;
-     typedef __int32 int32_t;
-     typedef __int16 int16_t;
-     typedef __int8  int8_t;
 #    define PRIu64 "I64u"
 #    define PRId64 "I64d"
 #    define PRIx64 "I64x"
index ace4e3c..0c962b1 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index f1b7520..8c26750 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 56006e0..e1ce90b 100644 (file)
@@ -49,6 +49,7 @@
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index d0a1e99..20ee93b 100644 (file)
@@ -49,6 +49,7 @@
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 52e12c0..3815c79 100644 (file)
@@ -52,6 +52,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 5bff5d8..6b6edf0 100644 (file)
@@ -52,6 +52,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 076406b..81259be 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 7a95af2..efc4ba7 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index bb70706..d9f5a8a 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 152d827..9645da5 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 1e28a9b..7e14883 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 87b8ad5..45a031a 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 00eeea7..b34cbbe 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 8644a23..cf0f4d9 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 1ada2ed..9ea0572 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 0c8e55c..b9152c5 100644 (file)
@@ -49,6 +49,7 @@
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index c31c366..bcca1cc 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 0f1d37c..763d3e7 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index bfeeef7..bcfe310 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 415ecc0..65ed81c 100644 (file)
@@ -50,6 +50,7 @@
                                DebugInformationFormat="4"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                DebugInformationFormat="3"\r
                                CompileAs="0"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index 0c79b2f..e7831e2 100644 (file)
@@ -49,6 +49,7 @@
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
index edcc40d..b18bf60 100644 (file)
@@ -49,6 +49,7 @@
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="4"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r
                                Detect64BitPortabilityProblems="true"\r
                                DebugInformationFormat="3"\r
                                DisableSpecificWarnings="4267;4996"\r
+                               ForcedIncludeFiles="share/msvc2005_int.h"\r
                        />\r
                        <Tool\r
                                Name="VCManagedResourceCompilerTool"\r