gfx/angle/include/export.h
author Ian Bicking <ianb@colorstudy.com>
Wed, 13 Sep 2017 14:40:39 -0500
changeset 433464 fa1052b9a9529e7e7ccee343475ed3d5c0ac7674
parent 402817 2fd9927e85ae56c93a8a453910d5e5acb89c6be9
child 437973 88ddf39c0d793dc508c3083515e69bfe3eb4d420
permissions -rw-r--r--
Bug 1399615 - Export Screenshots 19.0.0 to Firefox. r=kmag MozReview-Commit-ID: 1QFbWCThVeg

//
// Copyright(c) 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// export.h : Defines ANGLE_EXPORT, a macro for exporting functions from the DLL

#ifndef LIBGLESV2_EXPORT_H_
#define LIBGLESV2_EXPORT_H_

#if defined(_WIN32)
#if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \
    defined(LIBANGLE_UTIL_IMPLEMENTATION)
#       define ANGLE_EXPORT __declspec(dllexport)
#   else
#       define ANGLE_EXPORT __declspec(dllimport)
#   endif
#elif defined(__GNUC__)
#if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \
    defined(LIBANGLE_UTIL_IMPLEMENTATION)
#       define ANGLE_EXPORT __attribute__((visibility ("default")))
#   else
#       define ANGLE_EXPORT
#   endif
#else
#   define ANGLE_EXPORT
#endif

#endif // LIBGLESV2_EXPORT_H_