It started with finding a misplaced #endif. Then I wanted to see the
structure better. I hope noone minds, and that it still works. Steve?
This commit is contained in:
parent
41b8994e99
commit
0056ef5d01
63
e_os.h
63
e_os.h
@ -171,19 +171,18 @@ extern "C" {
|
|||||||
|
|
||||||
#if defined(WINDOWS) || defined(MSDOS)
|
#if defined(WINDOWS) || defined(MSDOS)
|
||||||
|
|
||||||
#ifndef S_IFDIR
|
# ifndef S_IFDIR
|
||||||
#define S_IFDIR _S_IFDIR
|
# define S_IFDIR _S_IFDIR
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
#ifndef S_IFMT
|
# ifndef S_IFMT
|
||||||
#define S_IFMT _S_IFMT
|
# define S_IFMT _S_IFMT
|
||||||
|
# endif
|
||||||
|
|
||||||
#if !defined(WINNT)
|
# if !defined(WINNT)
|
||||||
#define NO_SYSLOG
|
# define NO_SYSLOG
|
||||||
#endif
|
# endif
|
||||||
#define NO_DIRENT
|
# define NO_DIRENT
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef WINDOWS
|
# ifdef WINDOWS
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
@ -195,29 +194,29 @@ extern "C" {
|
|||||||
# include <io.h>
|
# include <io.h>
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
|
|
||||||
#if defined (__BORLANDC__)
|
# if defined (__BORLANDC__)
|
||||||
#define _setmode setmode
|
# define _setmode setmode
|
||||||
#define _O_TEXT O_TEXT
|
# define _O_TEXT O_TEXT
|
||||||
#define _O_BINARY O_BINARY
|
# define _O_BINARY O_BINARY
|
||||||
#define _int64 __int64
|
# define _int64 __int64
|
||||||
#define _kbhit kbhit
|
# define _kbhit kbhit
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
#if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST)
|
# if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST)
|
||||||
# define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); }
|
# define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); }
|
||||||
#else
|
# else
|
||||||
# define EXIT(n) return(n);
|
# define EXIT(n) return(n);
|
||||||
#endif
|
# endif
|
||||||
# define LIST_SEPARATOR_CHAR ';'
|
# define LIST_SEPARATOR_CHAR ';'
|
||||||
#ifndef X_OK
|
# ifndef X_OK
|
||||||
# define X_OK 0
|
# define X_OK 0
|
||||||
#endif
|
# endif
|
||||||
#ifndef W_OK
|
# ifndef W_OK
|
||||||
# define W_OK 2
|
# define W_OK 2
|
||||||
#endif
|
# endif
|
||||||
#ifndef R_OK
|
# ifndef R_OK
|
||||||
# define R_OK 4
|
# define R_OK 4
|
||||||
#endif
|
# endif
|
||||||
# define OPENSSL_CONF "openssl.cnf"
|
# define OPENSSL_CONF "openssl.cnf"
|
||||||
# define SSLEAY_CONF OPENSSL_CONF
|
# define SSLEAY_CONF OPENSSL_CONF
|
||||||
# define NUL_DEV "nul"
|
# define NUL_DEV "nul"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user