Fixed platform stuff

This commit is contained in:
2022-09-18 09:29:03 +01:00
parent c680427b1e
commit 73626da5be

View File

@@ -9,25 +9,9 @@
#define TOY_VERSION_PATCH 0 #define TOY_VERSION_PATCH 0
#define TOY_VERSION_BUILD __DATE__ " " __TIME__ #define TOY_VERSION_BUILD __DATE__ " " __TIME__
//platform exports/imports //platform exports/imports --was it needed?
#if defined(WIN32) || defined(_WIN32)
#if defined(TOY_EXPORT)
#define TOY_API __declspec(dllexport)
#else
#define TOY_API __declspec(dllimport)
#endif
#elif defined(linux)
#define TOY_API extern #define TOY_API extern
#else
#define TOY_API
#endif
#ifndef TOY_EXPORT #ifndef TOY_EXPORT
//for processing the command line arguments //for processing the command line arguments
typedef struct { typedef struct {