blob: 78e71e229b4c1486fa7cf32a9bdbfca8ded69bce [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
#define CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
// Defines LIBGTK2UI_EXPORT so that functionality implemented by our limited
// gtk2 module can be exported to consumers.
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#error "LIBGTK2UI does not build on Windows."
#else // defined(WIN32)
#if defined(LIBGTK2UI_IMPLEMENTATION)
#define LIBGTK2UI_EXPORT __attribute__((visibility("default")))
#else
#define LIBGTK2UI_EXPORT
#endif
#endif
#else // defined(COMPONENT_BUILD)
#define LIBGTK2UI_EXPORT
#endif
#endif // CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_