1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// =================================================================================================
// Copyright 2005-2008 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.
//
// =================================================================================================
#ifndef XMPQE_GLOBALS_H
#define XMPQE_GLOBALS_H
#include <string>
//sanity check platform/endianess
#if !defined(WIN_ENV) && !defined(MAC_ENV) && !defined(UNIX_ENV)
#error "XMP environment error - must define one of MAC_ENV, WIN_ENV, or UNIX_ENV"
#endif
#ifdef WIN_ENV
#define XMPQE_LITTLE_ENDIAN
#elif (defined(MAC_ENV) || defined(UNIX_ENV))
#if __BIG_ENDIAN__
#define XMPQE_BIG_ENDIAN
#elif __LITTLE_ENDIAN__
#define XMPQE_LITTLE_ENDIAN
#else
#error "Neither __BIG_ENDIAN__ nor __LITTLE_ENDIAN__ is set"
#endif
#else
#error "Unknown build environment, neither WIN_ENV nor MAC_ENV nor UNIX_ENV"
#endif
const static unsigned int XMPQE_BUFFERSIZE=4096; //should do for all my buffer output, but you never now (stdarg dilemma)
const char OMNI_CSTRING[]={0x41,0xE4,0xB8,0x80,0x42,0xE4,0xBA,0x8C,0x43,0xC3,0x96,0x44,0xF0,0x90,0x81,0x91,0x45,'\0'};
const char BOM_CSTRING[]={0xEF,0xBB,0xBF,'\0'}; // nb: forgetting the '\0' is a very evil mistake.
const std::string OMNI_STRING(OMNI_CSTRING);
//if plain utf8 conversion, mac/win local encoding is a different story...
const std::string OMNI_BUGINESE("A<E4 B8 80>B<E4 BA 8C>C<C3 96>D<F0 90 81 91>E");
#endif // XMPQE_GLOBALS_H
|