json-gen-c  0.1.5
json-gen-c generate C code for json manipulation
compat.h File Reference

Cross-platform compatibility abstractions for Windows and POSIX. More...

#include <pthread.h>
#include <unistd.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define compat_isatty(fd)   isatty(fd)
 
#define compat_fileno(f)   fileno(f)
 
#define compat_strdup(s)   strdup(s)
 

Typedefs

typedef pthread_mutex_t compat_mutex_t
 

Detailed Description

Cross-platform compatibility abstractions for Windows and POSIX.

Provides unified APIs for:

  • Mutex (pthread on POSIX, CRITICAL_SECTION on Windows)
  • isatty / fileno
  • strdup
  • Path separator detection