mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
slightly simplify tmxlite subproject
This commit is contained in:
@@ -27,38 +27,5 @@ source distribution.
|
||||
|
||||
#pragma once
|
||||
|
||||
//check which platform we're on and create export macros as necessary
|
||||
#if !defined(TMXLITE_STATIC)
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
//windows compilers need specific (and different) keywords for export
|
||||
#define TMXLITE_EXPORT_API __declspec(dllexport)
|
||||
|
||||
//for vc compilers we also need to turn off this annoying C4251 warning
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable: 4251)
|
||||
#endif //_MSC_VER
|
||||
|
||||
#else //linux, FreeBSD, Mac OS X
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
|
||||
//gcc 4 has special keywords for showing/hiding symbols,
|
||||
//the same keyword is used for both importing and exporting
|
||||
#define TMXLITE_EXPORT_API __attribute__ ((__visibility__ ("default")))
|
||||
|
||||
#else
|
||||
|
||||
//gcc < 4 has no mechanism to explicitly hide symbols, everything's exported
|
||||
#define TMXLITE_EXPORT_API
|
||||
#endif //__GNUC__
|
||||
|
||||
#endif //_WIN32
|
||||
|
||||
#else
|
||||
|
||||
//static build doesn't need import/export macros
|
||||
#define TMXLITE_EXPORT_API
|
||||
|
||||
#endif //TMXLITE_STATIC
|
||||
@@ -178,13 +178,13 @@ namespace tmx
|
||||
}
|
||||
};
|
||||
}
|
||||
#ifndef _DEBUG_
|
||||
#ifdef NDEBUG
|
||||
#define LOG(message, type)
|
||||
#else
|
||||
#define LOG(message, type) {\
|
||||
std::stringstream ss; \
|
||||
ss << message << " (" << __FILE__ << ", " << __LINE__ << ")"; \
|
||||
tmx::Logger::log(ss.str(), type);}
|
||||
#endif //_DEBUG_
|
||||
#endif //NDEBUG
|
||||
|
||||
#endif //TMXLITE_LOGGER_HPP_
|
||||
#endif //TMXLITE_LOGGER_HPP_
|
||||
|
||||
Reference in New Issue
Block a user