types.h 529 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2019-2020 Alibaba Group Holding Limited
  3. */
  4. #ifndef AOS_TYPES_H
  5. #define AOS_TYPES_H
  6. #include <stdint.h>
  7. #include <stddef.h>
  8. #include <unistd.h>
  9. #include <fcntl.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #define AOS_EXPORT(...)
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #if !defined(__BEGIN_DECLS__) || !defined(__END_DECLS__)
  18. #if defined(__cplusplus)
  19. # define __BEGIN_DECLS__ extern "C" {
  20. # define __END_DECLS__ }
  21. #else
  22. # define __BEGIN_DECLS__
  23. # define __END_DECLS__
  24. #endif
  25. #endif
  26. #endif /* AOS_TYPES_H */