Author: kornel
Date: Thu May 12 19:12:08 2011
New Revision: 38724
URL: http://www.lyx.org/trac/changeset/38724
Log:
Added missing cmakedefines to intl
Added:
lyx-devel/trunk/development/cmake/intl/libgnuintl.h.cmake
- copied, changed from r38723,
lyx-devel/trunk/development/cmake/intl/libgnuintl.h
Deleted:
lyx-devel/trunk/development/cmake/intl/libgnuintl.h
Modified:
lyx-devel/trunk/intl/CMakeLists.txt
Copied and modified: lyx-devel/trunk/development/cmake/intl/libgnuintl.h.cmake
(from r38723, lyx-devel/trunk/development/cmake/intl/libgnuintl.h)
==============================================================================
--- lyx-devel/trunk/development/cmake/intl/libgnuintl.h Thu May 12 16:03:21
2011 (r38723, copy source)
+++ lyx-devel/trunk/development/cmake/intl/libgnuintl.h.cmake Thu May 12
19:12:08 2011 (r38724)
@@ -19,6 +19,10 @@
#ifndef _LIBINTL_H
#define _LIBINTL_H 1
+#cmakedefine01 HAVE_POSIX_PRINTF
+#cmakedefine01 HAVE_ASPRINTF
+#cmakedefine01 HAVE_WPRINTF
+
#include <locale.h>
/* The LC_MESSAGES locale category is the category used by the functions
@@ -52,6 +56,11 @@
#endif
+/* Version number: (major<<16) + (minor<<8) + subminor */
+#define LIBINTL_VERSION 0x001000
+extern int libintl_version;
+
+
/* We redirect the functions to those prefixed with "libintl_". This is
necessary, because some systems define gettext/textdomain/... in the C
library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer).
@@ -217,6 +226,8 @@
#endif
+#ifndef IN_LIBGLOCALE
+
/* Set the current default message catalog to DOMAINNAME.
If DOMAINNAME is null, return the current default.
If DOMAINNAME is "", reset to the default of "messages". */
@@ -271,6 +282,8 @@
_INTL_ASM (libintl_bind_textdomain_codeset);
#endif
+#endif /* IN_LIBGLOCALE */
+
/* Support for format strings with positions in *printf(), following the
POSIX/XSI specification.
@@ -300,6 +313,12 @@
extern int vfprintf (FILE *, const char *, va_list);
#undef printf
+#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__
+/* Don't break __attribute__((format(printf,M,N))).
+ This redefinition is only possible because the libc in NetBSD, Cygwin,
+ mingw does not have a function __printf__. */
+# define libintl_printf __printf__
+#endif
#define printf libintl_printf
extern int printf (const char *, ...);
#undef vprintf
Modified: lyx-devel/trunk/intl/CMakeLists.txt
==============================================================================
--- lyx-devel/trunk/intl/CMakeLists.txt Thu May 12 16:03:21 2011 (r38723)
+++ lyx-devel/trunk/intl/CMakeLists.txt Thu May 12 19:12:08 2011 (r38724)
@@ -7,8 +7,8 @@
project(intl)
# libgnuintl.h.in => libintl.h
-configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h"
${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h COPYONLY)
-configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h"
${CMAKE_CURRENT_BINARY_DIR}/libintl.h COPYONLY)
+configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h.cmake"
${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h)
+configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h.cmake"
${CMAKE_CURRENT_BINARY_DIR}/libintl.h)
add_definitions(