added platform header file

This commit is contained in:
Robin Müller 2021-05-12 16:38:02 +02:00
parent a6dd2d5dcb
commit d27f49c968
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

15
platform.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef FSFW_PLATFORM_H_
#define FSFW_PLATFORM_H_
#if defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
#define PLATFORM_UNIX
#elif defined(_WIN32)
#define PLATFORM_WIN
#endif
#endif /* FSFW_PLATFORM_H_ */