diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2017-01-23 04:32:34 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2017-01-23 04:32:34 +0000 |
commit | f6d78bf855f2d564f9e383508908631a4668e2af (patch) | |
tree | 223bd69531113c5069679f9a6d482c03863284c9 /pjlib/include/pj/config.h | |
parent | dfe36134873cb77d5b9c2a999f3134eb79f6ca6e (diff) |
Re #1900: Reintegrated works in UWP branch to trunk.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5539 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/config.h')
-rw-r--r-- | pjlib/include/pj/config.h | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h index c8a4ef72..064250c4 100644 --- a/pjlib/include/pj/config.h +++ b/pjlib/include/pj/config.h @@ -76,6 +76,31 @@ /* Also define Win32 */ # define PJ_WIN32 1 +#elif defined(PJ_WIN32_WINPHONE8) || defined(_WIN32_WINPHONE8) + /* + * Windows Phone 8 + */ +# undef PJ_WIN32_WINPHONE8 +# define PJ_WIN32_WINPHONE8 1 +# include <pj/compat/os_winphone8.h> + + /* Also define Win32 */ +# define PJ_WIN32 1 + +#elif defined(PJ_WIN32_UWP) || defined(_WIN32_UWP) + /* + * Windows UWP + */ +# undef PJ_WIN32_UWP +# define PJ_WIN32_UWP 1 +# include <pj/compat/os_winuwp.h> + + /* Define Windows phone */ +# define PJ_WIN32_WINPHONE8 1 + + /* Also define Win32 */ +# define PJ_WIN32 1 + #elif defined(PJ_WIN32) || defined(_WIN32) || defined(__WIN32__) || \ defined(WIN32) || defined(PJ_WIN64) || defined(_WIN64) || \ defined(WIN64) || defined(__TOS_WIN__) @@ -236,18 +261,23 @@ # define PJ_IS_LITTLE_ENDIAN 0 # define PJ_IS_BIG_ENDIAN 1 -#elif defined (PJ_M_ARMV4) || defined(ARM) || defined(_ARM_) || \ - defined(ARMV4) || defined(__arm__) +#elif defined(ARM) || defined(_ARM_) || defined(__arm__) || defined(_M_ARM) +# define PJ_HAS_PENTIUM 0 /* * ARM, bi-endian, so raise error if endianness is not configured */ -# undef PJ_M_ARMV4 -# define PJ_M_ARMV4 1 -# define PJ_M_NAME "armv4" -# define PJ_HAS_PENTIUM 0 # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN # error Endianness must be declared for this processor # endif +# if defined (PJ_M_ARMV7) || defined(ARMV7) +# undef PJ_M_ARMV7 +# define PJ_M_ARM7 1 +# define PJ_M_NAME "armv7" +# elif defined (PJ_M_ARMV4) || defined(ARMV4) +# undef PJ_M_ARMV4 +# define PJ_M_ARMV4 1 +# define PJ_M_NAME "armv4" +# endif #elif defined (PJ_M_POWERPC) || defined(__powerpc) || defined(__powerpc__) || \ defined(__POWERPC__) || defined(__ppc__) || defined(_M_PPC) || \ |