//1// Copyright 2018 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//5// util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols.67#ifndef UTIL_EXPORT_H_8#define UTIL_EXPORT_H_910// How to get the right import/export annotations on Windows:11// We define "IMPLEMENTATION" to get the dllexport label when compiling the12// util library. Consumers get the dllimport label by default.13#if !defined(ANGLE_UTIL_EXPORT)14# if defined(_WIN32)15# if defined(LIBANGLE_UTIL_IMPLEMENTATION)16# define ANGLE_UTIL_EXPORT __declspec(dllexport)17# else18# define ANGLE_UTIL_EXPORT __declspec(dllimport)19# endif20# elif defined(__GNUC__)21# define ANGLE_UTIL_EXPORT __attribute__((visibility("default")))22# else23# define ANGLE_UTIL_EXPORT24# endif25#endif // !defined(ANGLE_UTIL_EXPORT)2627#endif // UTIL_EXPORT_H_282930