mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
92c63e848a
In generated text fixture location lookup code: When the second argument to write_file() is a list, it is written one item per line to the path specified by the first argument. This ensures that we emit a trailing newline at EOF to comply with -Wnewline-eof. Elsewhere: Lack of a newline at EOF was undefined behaviour prior to C++11. The Fuchsia tree sets -Wnewline-eof in its buildroot, so we plan to do the same. This cleans up remaining first-party C++ sources that don't include a trailing newline.
29 lines
822 B
C
29 lines
822 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.
|
|
|
|
#ifndef FLUTTER_SHELL_PLATFORM_COMMON_CPP_PUBLIC_FLUTTER_EXPORT_H_
|
|
#define FLUTTER_SHELL_PLATFORM_COMMON_CPP_PUBLIC_FLUTTER_EXPORT_H_
|
|
|
|
#ifdef FLUTTER_DESKTOP_LIBRARY
|
|
// Add visibility/export annotations when building the library.
|
|
|
|
#ifdef _WIN32
|
|
#define FLUTTER_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define FLUTTER_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
#else // FLUTTER_DESKTOP_LIBRARY
|
|
|
|
// Add import annotations when consuming the library.
|
|
#ifdef _WIN32
|
|
#define FLUTTER_EXPORT __declspec(dllimport)
|
|
#else
|
|
#define FLUTTER_EXPORT
|
|
#endif
|
|
|
|
#endif // FLUTTER_DESKTOP_LIBRARY
|
|
|
|
#endif // FLUTTER_SHELL_PLATFORM_COMMON_CPP_PUBLIC_FLUTTER_EXPORT_H_
|