Chromium Code Reviews| Index: chrome/browser/ui/libgtk2ui/libgtk2ui_export.h |
| diff --git a/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h b/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a11edb0171769c06c0433de74b95b748ec4ab3ea |
| --- /dev/null |
| +++ b/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
tfarina
2012/06/07 17:02:05
nit: s/2011/2012
|
| +// 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_ |
| +#pragma once |
| + |
| +// Defines LIBGTK2UI_EXPORT so that functionality implemented by the aura module |
|
tfarina
2012/06/07 17:02:05
nit: s/aura/libgtk2ui
|
| +// 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_ |