1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
8 // Defines LIBGTK2UI_EXPORT so that functionality implemented by our limited
9 // gtk2 module can be exported to consumers.
11 #if defined(COMPONENT_BUILD)
14 #error "LIBGTK2UI does not build on Windows."
16 #else // defined(WIN32)
17 #if defined(LIBGTK2UI_IMPLEMENTATION)
18 #define LIBGTK2UI_EXPORT __attribute__((visibility("default")))
20 #define LIBGTK2UI_EXPORT
24 #else // defined(COMPONENT_BUILD)
25 #define LIBGTK2UI_EXPORT
28 #endif // CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_