Merge pull request #43 from xerdink/ti-include

fix(ti-compat): fixed compat header
This commit is contained in:
Kosma Moczek 2022-05-20 15:04:56 +02:00 committed by GitHub
commit 33b97e75b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,22 @@
* published by Sam Hocevar. See the COPYING file for more details. * published by Sam Hocevar. See the COPYING file for more details.
*/ */
#if defined(__TI_ARM__) #ifndef MINMEA_COMPAT_H_
#define MINMEA_COMPAT_H_
// timespec definition #if defined(__TI_ARM__)
#include <ti/sysbios/posix/types.h> #include <ti/posix/ccs/sys/types.h>
#include <ti/posix/ccs/time.h>
#elif defined(__IAR_SYSTEMS_ICC__)
#include <ti/posix/iar/sys/types.h>
#include <ti/posix/iar/time.h>
#elif defined(gcc)
#include <ti/posix/gcc/sys/types.h>
#include <ti/posix/gcc/time.h>
#endif /* __TI_ARM__ */
#define timegm mktime #define timegm mktime
#endif #endif /* MINMEA_COMPAT_H */
/* vim: set ts=4 sw=4 et: */ /* vim: set ts=4 sw=4 et: */