OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. /*
  2. * --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. * This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. *
  5. * Filename: package/.../bsd-compat-headers/sys-cdefs.h
  6. * Copyright (C) 2015 The OpenSDE Project
  7. *
  8. * More information can be found in the files COPYING and README.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; version 2 of the License. A copy of the
  13. * GNU General Public License can be found in the file COPYING.
  14. * --- SDE-COPYRIGHT-NOTE-END ---
  15. */
  16. #warning usage of non-standard #include <sys/cdefs.h> is deprecated
  17. #undef __P
  18. #undef __PMT
  19. #define __P(args) args
  20. #define __PMT(args) args
  21. #define __CONCAT(x,y) x ## y
  22. #define __STRING(x) #x
  23. #ifdef __cplusplus
  24. # define __BEGIN_DECLS extern "C" {
  25. # define __END_DECLS }
  26. #else
  27. # define __BEGIN_DECLS
  28. # define __END_DECLS
  29. #endif
  30. #if defined(__GNUC__) && !defined(__cplusplus)
  31. # define __THROW __attribute__ ((__nothrow__))
  32. # define __NTH(fct) __attribute__ ((__nothrow__)) fct
  33. #else
  34. # define __THROW
  35. # define __NTH(fct) fct
  36. #endif