Trying to fix time and platforms

This commit is contained in:
2022-11-11 17:31:45 +00:00
parent e0ab4106fa
commit 3d8ce4e7d8
2 changed files with 10 additions and 24 deletions

View File

@@ -12,8 +12,17 @@
//platform exports/imports
#if defined(__linux__)
#define TOY_API extern
#include <time.h>
#elif defined(_WIN32) || defined(WIN32)
#define TOY_API
#include <sys/time.h>
#include <time.h>
#else
#define TOY_API
#include <time.h>
#endif
#ifndef TOY_EXPORT