add platform specific linebreak defines

This commit is contained in:
bienvenu%netscape.com 1999-02-09 04:43:58 +00:00
Родитель 84edb88953
Коммит 57567ced9f
2 изменённых файлов: 32 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,22 @@
#define TAB '\011'
#define CRLF "\015\012" /* A CR LF equivalent string */
#ifdef XP_MAC
# define LINEBREAK "\015"
# define LINEBREAK_LEN 1
#else
# ifdef XP_WIN
# define LINEBREAK "\015\012"
# define LINEBREAK_LEN 2
# else
# ifdef XP_UNIX
# define LINEBREAK "\012"
# define LINEBREAK_LEN 1
# endif /* XP_UNIX */
# endif /* XP_WIN */
#endif /* XP_MAC */
/// This is a wrapper class around all the C runtime functions.
class NS_BASE nsCRT {

Просмотреть файл

@ -30,6 +30,22 @@
#define TAB '\011'
#define CRLF "\015\012" /* A CR LF equivalent string */
#ifdef XP_MAC
# define LINEBREAK "\015"
# define LINEBREAK_LEN 1
#else
# ifdef XP_WIN
# define LINEBREAK "\015\012"
# define LINEBREAK_LEN 2
# else
# ifdef XP_UNIX
# define LINEBREAK "\012"
# define LINEBREAK_LEN 1
# endif /* XP_UNIX */
# endif /* XP_WIN */
#endif /* XP_MAC */
/// This is a wrapper class around all the C runtime functions.
class NS_BASE nsCRT {