| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_SHARED_VERSION_H_ | 5 #ifndef SRC_SHARED_VERSION_H_ |
| 6 #define SRC_SHARED_VERSION_H_ | 6 #define SRC_SHARED_VERSION_H_ |
| 7 | 7 |
| 8 #ifdef _MSC_VER | 8 #ifdef _MSC_VER |
| 9 // TODO(herhut): Do we need a __declspec here for Windows? | 9 // TODO(herhut): Do we need a __declspec here for Windows? |
| 10 #define FLETCH_VISIBILITY_DEFAULT | 10 #define FLETCH_VISIBILITY_DEFAULT |
| 11 #else | 11 #else |
| 12 #define FLETCH_VISIBILITY_DEFAULT __attribute__((visibility("default"))) | 12 #define FLETCH_VISIBILITY_DEFAULT __attribute__((visibility("default"))) |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 namespace fletch { | 15 namespace fletch { |
| 16 | 16 |
| 17 extern "C" FLETCH_VISIBILITY_DEFAULT const char* GetVersion(); | 17 extern "C" FLETCH_VISIBILITY_DEFAULT const char* GetVersion(); |
| 18 | 18 |
| 19 } // namespace fletch | 19 } // namespace fletch |
| 20 | 20 |
| 21 #endif // SRC_SHARED_VERSION_H_ | 21 #endif // SRC_SHARED_VERSION_H_ |
| OLD | NEW |