[flac-dev] PATCH for MSVC: libFLAC and FLAC__ALIGN_MALLOC_DATA

lvqcl lvqcl.mail at gmail.com
Fri Aug 16 12:51:41 PDT 2013


Somehow MSVC projects don't have FLAC__ALIGN_MALLOC_DATA defined.


--- a\src\libFLAC\libFLAC_static.vcproj	2013-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\libFLAC_static.vcproj	2013-08-15 21:55:18.343822400 +0400
@@ -40,7 +40,7 @@
  				Name="VCCLCompilerTool"
  				Optimization="0"
  				AdditionalIncludeDirectories=".\include;..\..\include"
-				PreprocessorDefinitions="WIN32;_DEBUG;_LIB;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;VERSION=\"1.3.0\";FLAC__NO_DLL;DEBUG;FLAC__OVERFLOW_DETECT"
+				PreprocessorDefinitions="WIN32;_DEBUG;_LIB;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;FLAC__ALIGN_MALLOC_DATA;VERSION=\"1.3.0\";FLAC__NO_DLL;DEBUG;FLAC__OVERFLOW_DETECT"
  				MinimalRebuild="true"
  				BasicRuntimeChecks="3"
  				RuntimeLibrary="1"
@@ -108,7 +108,7 @@
  				OmitFramePointers="true"
  				WholeProgramOptimization="true"
  				AdditionalIncludeDirectories=".\include;..\..\include"
-				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;VERSION=\"1.3.0\";FLAC__NO_DLL;FLaC__INLINE=_inline"
+				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;FLAC__ALIGN_MALLOC_DATA;VERSION=\"1.3.0\";FLAC__NO_DLL;FLaC__INLINE=_inline"
  				RuntimeLibrary="0"
  				BufferSecurityCheck="false"
  				UsePrecompiledHeader="0"


--- a\src\libFLAC\libFLAC_dynamic.vcproj	2013-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\libFLAC_dynamic.vcproj	2013-08-15 21:54:54.005430300 +0400
@@ -40,7 +40,7 @@
  				Name="VCCLCompilerTool"
  				Optimization="0"
  				AdditionalIncludeDirectories=".\include;..\..\include"
-				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;FLAC_API_EXPORTS;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;VERSION=\"1.3.0\";DEBUG;FLAC__OVERFLOW_DETECT"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;FLAC_API_EXPORTS;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;FLAC__ALIGN_MALLOC_DATA;VERSION=\"1.3.0\";DEBUG;FLAC__OVERFLOW_DETECT"
  				MinimalRebuild="true"
  				BasicRuntimeChecks="3"
  				RuntimeLibrary="1"
@@ -119,7 +119,7 @@
  				OmitFramePointers="true"
  				WholeProgramOptimization="true"
  				AdditionalIncludeDirectories=".\include;..\..\include"
-				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;FLAC_API_EXPORTS;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;VERSION=\"1.3.0\";FLaC__INLINE=_inline"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;FLAC_API_EXPORTS;FLAC__HAS_OGG;FLAC__CPU_IA32;FLAC__HAS_NASM;FLAC__USE_3DNOW;FLAC__ALIGN_MALLOC_DATA;VERSION=\"1.3.0\";FLaC__INLINE=_inline"
  				RuntimeLibrary="0"
  				BufferSecurityCheck="false"
  				UsePrecompiledHeader="0"


More information about the flac-dev mailing list