Brandon DeRosier 21bb5f4bda [Flutter GPU] Fix symbol export for windows. (flutter/engine#50755)
Symbols weren't getting exported on Windows because the `FML_OS_WIN`
macro wasn't being imported.
2024-02-20 19:03:27 -08:00

17 lines
484 B
C

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/fml/build_config.h"
#ifndef FLUTTER_LIB_GPU_EXPORT_H_
#define FLUTTER_LIB_GPU_EXPORT_H_
#if FML_OS_WIN
#define FLUTTER_GPU_EXPORT __declspec(dllexport)
#else // FML_OS_WIN
#define FLUTTER_GPU_EXPORT __attribute__((visibility("default")))
#endif // FML_OS_WIN
#endif // FLUTTER_LIB_GPU_EXPORT_H_