Removed the CAUDIO_EXPORTS define completely, now the default is dynamic linking, unless CAUDIO_STATIC_LIB is defined.

This commit is contained in:
Joshua Jones 2010-02-20 21:13:52 +00:00
parent b69d688533
commit 2446119a5a
4 changed files with 2 additions and 7 deletions

View File

@ -42,7 +42,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".\dependencies\Headers;.\dependencies\Headers\al"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;CAUDIO_EXPORTS"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"

View File

@ -7,16 +7,13 @@
//! This is used primarily by plugins to make sure they are linking to the right library.
#define CAUDIO_VERSION "2.0.0"
#ifndef CAUDIO_STATIC_LIB
//! Global define for exporting the library
#ifdef CAUDIO_EXPORTS
#ifndef CAUDIO_STATIC_LIB
#ifdef CAUDIO_PLATFORM_WIN
#define CAUDIO_API __declspec(dllexport)
#else
#define CAUDIO_API extern "C"
#endif // CAUDIO_EXPORTS
#endif
#else
#define CAUDIO_API extern "C"

View File

@ -41,7 +41,6 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../../include/"
PreprocessorDefinitions="CAUDIO_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"

View File

@ -41,7 +41,6 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../../include/"
PreprocessorDefinitions="CAUDIO_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"