1cb93a386Sopenharmony_ci//
2cb93a386Sopenharmony_ci// Copyright 2014 The ANGLE Project Authors. All rights reserved.
3cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
4cb93a386Sopenharmony_ci// found in the LICENSE file.
5cb93a386Sopenharmony_ci//
6cb93a386Sopenharmony_ci
7cb93a386Sopenharmony_ci// export.h : Defines ANGLE_EXPORT, a macro for exporting functions from the DLL
8cb93a386Sopenharmony_ci
9cb93a386Sopenharmony_ci#ifndef LIBGLESV2_EXPORT_H_
10cb93a386Sopenharmony_ci#define LIBGLESV2_EXPORT_H_
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_ci#if !defined(ANGLE_EXPORT)
13cb93a386Sopenharmony_ci#    if defined(_WIN32)
14cb93a386Sopenharmony_ci#        if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \
15cb93a386Sopenharmony_ci            defined(LIBFEATURE_SUPPORT_IMPLEMENTATION) || defined(LIBCL_IMPLEMENTATION)
16cb93a386Sopenharmony_ci#            define ANGLE_EXPORT __declspec(dllexport)
17cb93a386Sopenharmony_ci#        else
18cb93a386Sopenharmony_ci#            define ANGLE_EXPORT __declspec(dllimport)
19cb93a386Sopenharmony_ci#        endif
20cb93a386Sopenharmony_ci#    elif defined(__GNUC__)
21cb93a386Sopenharmony_ci#        if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \
22cb93a386Sopenharmony_ci            defined(LIBFEATURE_SUPPORT_IMPLEMENTATION) || defined(LIBCL_IMPLEMENTATION)
23cb93a386Sopenharmony_ci#            define ANGLE_EXPORT __attribute__((visibility("default")))
24cb93a386Sopenharmony_ci#        else
25cb93a386Sopenharmony_ci#            define ANGLE_EXPORT
26cb93a386Sopenharmony_ci#        endif
27cb93a386Sopenharmony_ci#    else
28cb93a386Sopenharmony_ci#        define ANGLE_EXPORT
29cb93a386Sopenharmony_ci#    endif
30cb93a386Sopenharmony_ci#endif  // !defined(ANGLE_EXPORT)
31cb93a386Sopenharmony_ci
32cb93a386Sopenharmony_ci#if !defined(ANGLE_NO_EXPORT)
33cb93a386Sopenharmony_ci#    if defined(__GNUC__)
34cb93a386Sopenharmony_ci#        define ANGLE_NO_EXPORT __attribute__((visibility("hidden")))
35cb93a386Sopenharmony_ci#    else
36cb93a386Sopenharmony_ci#        define ANGLE_NO_EXPORT
37cb93a386Sopenharmony_ci#    endif
38cb93a386Sopenharmony_ci#endif  // !defined(ANGLE_NO_EXPORT)
39cb93a386Sopenharmony_ci
40cb93a386Sopenharmony_ci#endif  // LIBGLESV2_EXPORT_H_
41