Changeset 2619 for trunk/texinfo/lib


Ignore:
Timestamp:
Mar 12, 2006, 6:02:46 PM (19 years ago)
Author:
bird
Message:

applied OS/2 patches (manually).

Location:
trunk/texinfo/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/texinfo/lib/Makefile.am

    r2617 r2619  
    1818                   gettext.h \
    1919                   strcase.h strdup.h substring.c system.h \
    20                    xalloc.h xexit.c xmalloc.c xstrdup.c
     20                   xalloc.h xexit.c xmalloc.c xstrdup.c \
     21                   pc.c pc.h
    2122libtxi_a_LIBADD = $(LIBOBJS) $(ALLOCA)
    2223libtxi_a_DEPENDENCIES = $(libtxi_a_LIBADD)
  • trunk/texinfo/lib/system.h

    r2617 r2619  
    2828#ifdef MIKTEX
    2929#include <gnu-miktex.h>
    30 #define S_ISDIR(x) ((x)&_S_IFDIR) 
     30#define S_ISDIR(x) ((x)&_S_IFDIR)
    3131#else
    3232/* MiKTeX defines substring() in a separate DLL, where it has its
    33    own __declspec declaration.  We don't want to try to duplicate 
     33   own __declspec declaration.  We don't want to try to duplicate
    3434   this Microsoft-ism here.  */
    3535extern char *substring (const char *, const char *);
     
    213213#  define DEFAULT_INFO_PRINT_COMMAND ">PRN"
    214214# else   /* O_BINARY && !__MSDOS__ */
    215 #  define setmode(f,m)  _setmode(f,m)
    216 #  define HAVE_LONG_FILENAMES(dir)   (1)
    217 #  define NULL_DEVICE   "NUL"
     215#  ifdef __EMX__
     216#   define NULL_DEVICE  "nul"
     217#   define HAVE_LONG_FILENAMES(dir)   (1)
     218#   define DEFAULT_INFO_PRINT_COMMAND "expand --tabs=4 >>InfoLog.tmp"
     219#  else
     220#   define setmode(f,m)  _setmode(f,m)
     221#   define HAVE_LONG_FILENAMES(dir)   (1)
     222#   define NULL_DEVICE  "NUL"
     223#  endif /* !__EMX__ */
    218224# endif  /* O_BINARY && !__MSDOS__ */
    219225# ifdef __CYGWIN__
     
    229235# define FOPEN_RBIN     "rb"
    230236# define FOPEN_WBIN     "wb"
     237# ifdef __EMX__                         /* bird - start */
     238#  define FOPEN_RTXT     "rt"
     239#  define FOPEN_WTXT     "wt"
     240# else
     241#  define FOPEN_RTXT     "r"
     242#  define FOPEN_WTXT     "w"
     243# endif                                 /* bird - end */
    231244# define HAVE_DRIVE(n)  ((n)[0] && (n)[1] == ':')
    232245# define IS_SLASH(c)    ((c) == '/' || (c) == '\\')
     
    240253# define FOPEN_RBIN     "r"
    241254# define FOPEN_WBIN     "w"
     255# define FOPEN_RTXT     "r"             /* bird */
     256# define FOPEN_WTXT     "w"             /* bird */
    242257# define IS_SLASH(c)    ((c) == '/')
    243258# define HAVE_DRIVE(n)  (0)
Note: See TracChangeset for help on using the changeset viewer.