RockBLOCK 9704 C Library
Doxygen documentation for the RockBLOCK 9704 C Library.
crossplatform.h
Go to the documentation of this file.
1 #ifndef CROSSPLATFORM_H
2 #define CROSSPLATFORM_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #if defined(_WIN32)
9  #include <windows.h>
10  #include <string.h>
11  #include <stdint.h>
12 
13  #ifndef PATH_MAX
14  #define PATH_MAX MAX_PATH
15  #endif
16 
17  int usleep(unsigned int microseconds);
18 
19  char * stpncpy (char * dst, const char * src, size_t len);
20 
21  unsigned long millis(void);
22  void delay(uint32_t ms);
23 #elif defined(__linux__) || defined(__APPLE__)
24  #include <stdint.h>
25 
26  unsigned long millis(void);
27  void delay(uint32_t ms);
28 #endif
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif // CROSSPLATFORM_H
unsigned long millis(void)
Definition: crossplatform.c:36
void delay(uint32_t ms)
Definition: crossplatform.c:43