(Build) Ensure default style is installed & remove autoconf file lists
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / third-party / yoga / YGMacros.h
1 /**
2  * Copyright (c) 2014-present, Facebook, Inc.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7
8 #pragma once
9
10 #ifdef __cplusplus
11 #define YG_EXTERN_C_BEGIN extern "C" {
12 #define YG_EXTERN_C_END }
13 #else
14 #define YG_EXTERN_C_BEGIN
15 #define YG_EXTERN_C_END
16 #endif
17
18 #ifdef _WINDLL
19 #define WIN_EXPORT __declspec(dllexport)
20 #else
21 #define WIN_EXPORT
22 #endif
23
24 #ifdef WINARMDLL
25 #define WIN_STRUCT(type) type *
26 #define WIN_STRUCT_REF(value) &value
27 #else
28 #define WIN_STRUCT(type) type
29 #define WIN_STRUCT_REF(value) value
30 #endif
31
32 #ifdef NS_ENUM
33 // Cannot use NSInteger as NSInteger has a different size than int (which is the default type of a
34 // enum).
35 // Therefor when linking the Yoga C library into obj-c the header is a missmatch for the Yoga ABI.
36 #define YG_ENUM_BEGIN(name) NS_ENUM(int, name)
37 #define YG_ENUM_END(name)
38 #else
39 #define YG_ENUM_BEGIN(name) enum name
40 #define YG_ENUM_END(name) name
41 #endif