fixes for MSVC6
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 16 Oct 2006 15:49:17 +0000 (15:49 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 16 Oct 2006 15:49:17 +0000 (15:49 +0000)
include/FLAC/export.h
src/libFLAC/libFLAC_dynamic.dsp
src/libFLAC/stream_decoder.c

index c0f367e..8d9e793 100644 (file)
 #define FLAC_API_VERSION_REVISION 0 /**< see above */
 #define FLAC_API_VERSION_AGE 0 /**< see above */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */
-extern int FLAC_API_SUPPORTS_OGG_FLAC;
+extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC;
+
+#ifdef __cplusplus
+}
+#endif
 
 /* \} */
 
index 0a0f842..7d285ea 100644 (file)
@@ -53,7 +53,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386\r
-# ADD LINK32 /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\obj\release\bin/libFLAC.dll"\r
+# ADD LINK32 ..\..\obj\release\lib\ogg_static.lib /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\obj\release\bin/libFLAC.dll"\r
 \r
 !ELSEIF  "$(CFG)" == "libFLAC_dynamic - Win32 Debug"\r
 \r
@@ -79,7 +79,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\obj\debug\bin/libFLAC.dll" /pdbtype:sept\r
+# ADD LINK32 ..\..\obj\release\lib\ogg_static.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\obj\debug\bin/libFLAC.dll" /pdbtype:sept\r
 \r
 !ENDIF \r
 \r
index d6e624a..af47617 100644 (file)
@@ -78,7 +78,7 @@
 
 
 /* technically this should be in an "export.c" but this is convenient enough */
-int FLAC_API_SUPPORTS_OGG_FLAC =
+FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC =
 #if FLAC__HAS_OGG
        1
 #else