export.h 819 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Copyright(c) 2014 The ANGLE Project Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license that can be
  4. // found in the LICENSE file.
  5. //
  6. // export.h : Defines ANGLE_EXPORT, a macro for exporting functions from the DLL
  7. #ifndef LIBGLESV2_EXPORT_H_
  8. #define LIBGLESV2_EXPORT_H_
  9. #if defined(_WIN32)
  10. # if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION)
  11. # define ANGLE_EXPORT __declspec(dllexport)
  12. # else
  13. # define ANGLE_EXPORT __declspec(dllimport)
  14. # endif
  15. #elif defined(__GNUC__)
  16. # if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION)
  17. # define ANGLE_EXPORT __attribute__((visibility ("default")))
  18. # else
  19. # define ANGLE_EXPORT
  20. # endif
  21. #else
  22. # define ANGLE_EXPORT
  23. #endif
  24. #endif // LIBGLESV2_EXPORT_H_