1*8975f5c5SAndroid Build Coastguard Worker // 2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2018 The ANGLE Project Authors. All rights reserved. 3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 5*8975f5c5SAndroid Build Coastguard Worker // 6*8975f5c5SAndroid Build Coastguard Worker // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. 7*8975f5c5SAndroid Build Coastguard Worker 8*8975f5c5SAndroid Build Coastguard Worker #ifndef UTIL_EXPORT_H_ 9*8975f5c5SAndroid Build Coastguard Worker #define UTIL_EXPORT_H_ 10*8975f5c5SAndroid Build Coastguard Worker 11*8975f5c5SAndroid Build Coastguard Worker // How to get the right import/export annotations on Windows: 12*8975f5c5SAndroid Build Coastguard Worker // We define "IMPLEMENTATION" to get the dllexport label when compiling the 13*8975f5c5SAndroid Build Coastguard Worker // util library. Consumers get the dllimport label by default. 14*8975f5c5SAndroid Build Coastguard Worker #if !defined(ANGLE_UTIL_EXPORT) 15*8975f5c5SAndroid Build Coastguard Worker # if defined(_WIN32) 16*8975f5c5SAndroid Build Coastguard Worker # if defined(LIBANGLE_UTIL_IMPLEMENTATION) 17*8975f5c5SAndroid Build Coastguard Worker # define ANGLE_UTIL_EXPORT __declspec(dllexport) 18*8975f5c5SAndroid Build Coastguard Worker # else 19*8975f5c5SAndroid Build Coastguard Worker # define ANGLE_UTIL_EXPORT __declspec(dllimport) 20*8975f5c5SAndroid Build Coastguard Worker # endif 21*8975f5c5SAndroid Build Coastguard Worker # elif defined(__GNUC__) 22*8975f5c5SAndroid Build Coastguard Worker # define ANGLE_UTIL_EXPORT __attribute__((visibility("default"))) 23*8975f5c5SAndroid Build Coastguard Worker # else 24*8975f5c5SAndroid Build Coastguard Worker # define ANGLE_UTIL_EXPORT 25*8975f5c5SAndroid Build Coastguard Worker # endif 26*8975f5c5SAndroid Build Coastguard Worker #endif // !defined(ANGLE_UTIL_EXPORT) 27*8975f5c5SAndroid Build Coastguard Worker 28*8975f5c5SAndroid Build Coastguard Worker #endif // UTIL_EXPORT_H_ 29