1 // 2 // Copyright 2018 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 // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. 7 8 #ifndef UTIL_EXPORT_H_ 9 #define UTIL_EXPORT_H_ 10 11 #if !defined(ANGLE_UTIL_EXPORT) 12 # if defined(_WIN32) 13 # if defined(LIBANGLE_UTIL_IMPLEMENTATION) 14 # define ANGLE_UTIL_EXPORT __declspec(dllexport) 15 # else 16 # define ANGLE_UTIL_EXPORT __declspec(dllimport) 17 # endif 18 # elif defined(__GNUC__) 19 # if defined(LIBANGLE_UTIL_IMPLEMENTATION) 20 # define ANGLE_UTIL_EXPORT __attribute__((visibility("default"))) 21 # else 22 # define ANGLE_UTIL_EXPORT 23 # endif 24 # else 25 # define ANGLE_UTIL_EXPORT 26 # endif 27 #endif // !defined(ANGLE_UTIL_EXPORT) 28 29 #endif // UTIL_EXPORT_H_ 30