minmea_compat_ti-rtos.h 834 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright © 2017 Kosma Moczek <kosma@cloudyourcar.com>
  3. * This program is free software. It comes without any warranty, to the extent
  4. * permitted by applicable law. You can redistribute it and/or modify it under
  5. * the terms of the Do What The Fuck You Want To Public License, Version 2, as
  6. * published by Sam Hocevar. See the COPYING file for more details.
  7. */
  8. #ifndef MINMEA_COMPAT_H_
  9. #define MINMEA_COMPAT_H_
  10. #if defined(__TI_ARM__)
  11. #include <ti/posix/ccs/sys/types.h>
  12. #include <ti/posix/ccs/time.h>
  13. #elif defined(__IAR_SYSTEMS_ICC__)
  14. #include <ti/posix/iar/sys/types.h>
  15. #include <ti/posix/iar/time.h>
  16. #elif defined(gcc)
  17. #include <ti/posix/gcc/sys/types.h>
  18. #include <ti/posix/gcc/time.h>
  19. #endif /* __TI_ARM__ */
  20. #define timegm mktime
  21. #endif /* MINMEA_COMPAT_H */
  22. /* vim: set ts=4 sw=4 et: */