Wasabi ExpressPlay SDK for Embedded Systems
1.23.0
Client
ThirdParty
Ts2
Source
Ts2Config.h
Go to the documentation of this file.
1
/*****************************************************************
2
|
3
| MPEG2 Transport Stream - Config
4
|
5
| $Id: Ts2Config.h 326 2018-04-23 10:27:07Z gjesse $
6
| Original author: Julien Boeuf
7
|
8
| This software is provided to you pursuant to your agreement
9
| with Intertrust Technologies Corporation ("Intertrust").
10
| This software may be used only in accordance with the terms
11
| of the agreement.
12
|
13
| Copyright (c) 2010-2014 by Intertrust. All rights reserved.
14
|
15
****************************************************************/
16
17
#ifndef _TS2_CONFIG_H_
18
#define _TS2_CONFIG_H_
19
20
/*----------------------------------------------------------------------
21
| byte order
22
+---------------------------------------------------------------------*/
23
/* define TS2_PLATFORM_BYTE_ORDER to one of these two choices */
24
#define TS2_PLATFORM_BYTE_ORDER_BIG_ENDIAN 0
25
#define TS2_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 1
26
27
#if !defined(TS2_PLATFORM_BYTE_ORDER)
28
#if defined(__ppc__)
29
#define TS2_PLATFORM_BYTE_ORDER TS2_PLATFORM_BYTE_ORDER_BIG_ENDIAN
30
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__)
31
#define TS2_PLATFORM_BYTE_ORDER TS2_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN
32
#endif
33
#endif
34
35
/*----------------------------------------------------------------------
36
| platform specific headers
37
+---------------------------------------------------------------------*/
38
#if defined(_WIN32)
39
#if !defined(WINAPI_FAMILY)
40
/* for Windows 7 Desktop or earlier */
41
#include <windows.h>
42
#undef PostMessage
43
44
#elif WINAPI_FAMILY == WINAPI_FAMILY_APP
45
/* for WinRT Apps */
46
47
#elif WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
48
/* for Windows 8 Desktop and Apps */
49
#error not implemented
50
51
#elif WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
52
/* for Windows Phone 8 Apps */
53
#error not implemented
54
55
#else
56
#error unknown WINAPI_FAMILY
57
#endif
/* WINAPI_FAMILY */
58
59
#endif
/* _WIN32 */
60
61
/*----------------------------------------------------------------------
62
| support for shared object symbols
63
+---------------------------------------------------------------------*/
64
#if __GNUC__ >= 4
65
#define TS2_EXPORT __attribute__((visibility ("default")))
66
#else
67
#define TS2_EXPORT
68
#endif
69
70
#endif
/* _TS2_CONFIG_H_ */
71