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 # define ANGLE_UTIL_EXPORT __attribute__((visibility("default"))) 20 # else 21 # define ANGLE_UTIL_EXPORT 22 # endif 23 #endif // !defined(ANGLE_UTIL_EXPORT) 24 25 #endif // UTIL_EXPORT_H_ 26