mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
test for the size of wchar_t and define the macro SIZEOF_WCHAR_T with the size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14992 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9080c44458
commit
d6cc4b9f0b
@ -124,6 +124,20 @@ check_cxx_source_compiles(
|
||||
"
|
||||
HAVE_ICONV_CONST)
|
||||
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
int i[ ( sizeof(wchar_t)==2 ? 1 : -1 ) ];
|
||||
int main(){return 0;}
|
||||
"
|
||||
SIZEOF_WCHAR_T_IS_2)
|
||||
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
int i[ ( sizeof(wchar_t)==4 ? 1 : -1 ) ];
|
||||
int main(){return 0;}
|
||||
"
|
||||
SIZEOF_WCHAR_T_IS_4)
|
||||
|
||||
set(PACKAGE lyx)
|
||||
set(PACKAGE_VERSION 1.5.0svn)
|
||||
|
||||
|
@ -83,6 +83,16 @@
|
||||
#cmakedefine HAVE_LC_MESSAGES 1
|
||||
#cmakedefine HAVE_SSTREAM 1
|
||||
#cmakedefine HAVE_ARGZ_H 1
|
||||
#cmakedefine SIZEOF_WCHAR_T_IS_2 1
|
||||
#cmakedefine SIZEOF_WCHAR_T_IS_4 1
|
||||
|
||||
#ifdef SIZEOF_WCHAR_T_IS_2
|
||||
# define SIZEOF_WCHAR_T 2
|
||||
#else
|
||||
# ifdef SIZEOF_WCHAR_T_IS_4
|
||||
# define SIZEOF_WCHAR_T 4
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#cmakedefine HAVE_ALLOCA 1
|
||||
#cmakedefine HAVE_SYMBOL_ALLOCA 1
|
||||
|
Loading…
Reference in New Issue
Block a user