# HG changeset patch # User Vin Shelton # Date 1415645026 18000 # Node ID 4d7032d36975573c2f8644fbb4e8d72ef424ba3b # Parent 98681721a588dcbd55d404a9d9af7bafcca8881e Allow building --without-tls on the Windows native platform diff -r 98681721a588 -r 4d7032d36975 nt/ChangeLog --- a/nt/ChangeLog Mon Nov 10 13:22:49 2014 -0500 +++ b/nt/ChangeLog Mon Nov 10 13:43:46 2014 -0500 @@ -1,3 +1,8 @@ +2014-11-10 Vin Shelton + + * xemacs.mak (TEXINFO_SRCS): XEmacs sources no longer include + texinfo.texi. + 2014-11-10 Vin Shelton * README: Updated contributor information. diff -r 98681721a588 -r 4d7032d36975 nt/xemacs.mak --- a/nt/xemacs.mak Mon Nov 10 13:22:49 2014 -0500 +++ b/nt/xemacs.mak Mon Nov 10 13:43:46 2014 -0500 @@ -1495,7 +1495,6 @@ $(INFODIR)\new-users-guide.info \ $(INFODIR)\standards.info \ $(INFODIR)\termcap.info \ - $(INFODIR)\texinfo.info \ $(INFODIR)\widget.info \ $(INFODIR)\xemacs-faq.info \ $(INFODIR)\xemacs.info @@ -1631,14 +1630,6 @@ $(MANDIR)\new-users-guide\region.texi \ $(MANDIR)\new-users-guide\search.texi \ $(MANDIR)\new-users-guide\xmenu.texi - -TEXINFO_SRCS = \ - $(MANDIR)\texinfo\texinfo.texi \ - $(MANDIR)\texinfo\version.texi - -$(INFODIR)\texinfo.info: $(TEXINFO_SRCS) - cd $(MANDIR)\texinfo - $(MAKEINFO) texinfo.texi $(INFODIR)\xemacs.info: $(XEMACS_SRCS) cd $(MANDIR)\xemacs diff -r 98681721a588 -r 4d7032d36975 src/ChangeLog --- a/src/ChangeLog Mon Nov 10 13:22:49 2014 -0500 +++ b/src/ChangeLog Mon Nov 10 13:43:46 2014 -0500 @@ -1,3 +1,10 @@ +2014-11-06 Vin Shelton + + * sysdep.c (set_descriptor_non_blocking): Don't call ioctl() on + Windows native builds. + * emacs.c (main_1): Conditionalize tls variables and initialization. + * number.h: Elide Visual Studio warnings on NUMBER_TYPES expansion. + 2014-11-05 Jerry James * ExternalClient-Xlib.c (ExternalClientEventHandler): Cast integer diff -r 98681721a588 -r 4d7032d36975 src/emacs.c --- a/src/emacs.c Mon Nov 10 13:22:49 2014 -0500 +++ b/src/emacs.c Mon Nov 10 13:43:46 2014 -0500 @@ -1606,7 +1606,9 @@ syms_of_scrollbar (); #endif syms_of_text (); +#ifdef WITH_TLS syms_of_tls (); +#endif #ifdef HAVE_TOOLBARS syms_of_toolbar (); #endif @@ -2217,7 +2219,9 @@ vars_of_symbols (); vars_of_syntax (); vars_of_text (); +#ifdef WITH_TLS vars_of_tls (); +#endif #ifdef HAVE_TOOLBARS vars_of_toolbar (); #endif @@ -2680,8 +2684,10 @@ init_device_tty (); #endif init_console_stream (restart); /* Create the first console */ +#ifdef WITH_TLS if (initialized && !restart) init_tls (); +#endif /* try to get the actual pathname of the exec file we are running */ if (!restart) diff -r 98681721a588 -r 4d7032d36975 src/number.h --- a/src/number.h Mon Nov 10 13:22:49 2014 -0500 +++ b/src/number.h Mon Nov 10 13:43:46 2014 -0500 @@ -376,9 +376,21 @@ #define NUMBER_TYPES(prefix) prefix##FIXNUM_T, prefix##BIGNUM_T, \ prefix##RATIO_T, prefix##FLOAT_T, prefix##BIGFLOAT_T +#ifdef _MSC_VER +/* Disable warning 4003: + * warning C4003: not enough actual parameters for macro 'NUMBER_TYPES' + */ +#pragma warning( push ) +#pragma warning( disable : 4003) +#endif + enum number_type { NUMBER_TYPES() }; enum lazy_number_type { NUMBER_TYPES(LAZY_), LAZY_MARKER_T }; +#ifdef _MSC_VER +#pragma warning( pop ) +#endif + #undef NUMBER_TYPES extern enum number_type get_number_type (Lisp_Object); diff -r 98681721a588 -r 4d7032d36975 src/sysdep.c --- a/src/sysdep.c Mon Nov 10 13:22:49 2014 -0500 +++ b/src/sysdep.c Mon Nov 10 13:43:46 2014 -0500 @@ -188,11 +188,13 @@ lowry@watson.ibm.com (Andy Lowry). */ /* #### Should this be conditionalized on FIONBIO? */ #if defined (STRIDE) || (defined (pfa) && defined (HAVE_PTYS)) || defined (AIX) +#if !defined(WIN32_NATIVE) { int one = 1; ioctl (fd, FIONBIO, &one); } #endif +#endif #ifdef F_SETFL fcntl (fd, F_SETFL, O_NONBLOCK);