os.h 388 B

1234567891011121314151617181920
  1. #ifndef _OS_H
  2. #define _OS_H
  3. # if defined(__linux__)
  4. # define LINUX (!0)
  5. # define OBSD ( 0)
  6. # define FBSD ( 0)
  7. # define ISBSD ( 0)
  8. # elif defined(__OpenBSD__)
  9. # define LINUX ( 0)
  10. # define OBSD (!0)
  11. # define FBSD ( 0)
  12. # define ISBSD (!0)
  13. # elif defined(__FreeBSD__)
  14. # define LINUX ( 0)
  15. # define OBSD ( 0)
  16. # define FBSD (!0)
  17. # define ISBSD (!0)
  18. # endif
  19. #endif /* _OS_H */