Mesen/InteropDLL/stdafx.h

47 lines
1.0 KiB
C
Raw Normal View History

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#if _WIN32 || _WIN64
#if _WIN64
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
#if __GNUC__
#if __x86_64__ || __ppc64__
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
2016-02-14 23:36:08 +00:00
#ifdef _DEBUG
#define MESEN_LIBRARY_DEBUG_SUFFIX "Debug"
#else
#define MESEN_LIBRARY_DEBUG_SUFFIX "Release"
#endif
#ifdef ENVIRONMENT32
2016-02-14 23:36:08 +00:00
#define MESEN_LIBRARY_SUFFIX "x86.lib"
#else
#define MESEN_LIBRARY_SUFFIX "x64.lib"
#endif
2016-12-11 15:56:23 +00:00
#if _WIN32 || _WIN64
#pragma comment(lib, "Core.lib")
#pragma comment(lib, "Utilities.lib")
#pragma comment(lib, "Windows.lib")
#pragma comment(lib, "SevenZip.lib")
2017-08-30 22:31:27 +00:00
#pragma comment(lib, "Lua.lib")
#pragma comment(lib, "../Dependencies/DirectXTK." MESEN_LIBRARY_DEBUG_SUFFIX ".Static." MESEN_LIBRARY_SUFFIX)
2016-12-11 15:56:23 +00:00
#define DllExport __declspec(dllexport)
2016-05-22 12:14:55 +00:00
#else
2016-12-11 15:56:23 +00:00
#define __stdcall
#define DllExport __attribute__((visibility("default")))
#endif