summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-03-02 07:42:48 +0000
committerRichard Levitte <levitte@openssl.org>2000-03-02 07:42:48 +0000
commit0056ef5d01501de3e9b4f85fdcd4023177b2901c (patch)
tree8e31e9b752695de118676e605cc8d7ba5463d9e7 /e_os.h
parent41b8994e99babc79c2b204586004754a6564fe34 (diff)
downloadopenssl-new-0056ef5d01501de3e9b4f85fdcd4023177b2901c.tar.gz
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?
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h63
1 files changed, 31 insertions, 32 deletions
diff --git a/e_os.h b/e_os.h
index d23ab54aaf..2147c17052 100644
--- a/e_os.h
+++ b/e_os.h
@@ -171,19 +171,18 @@ extern "C" {
#if defined(WINDOWS) || defined(MSDOS)
-#ifndef S_IFDIR
-#define S_IFDIR _S_IFDIR
-#endif
-
-#ifndef S_IFMT
-#define S_IFMT _S_IFMT
+# ifndef S_IFDIR
+# define S_IFDIR _S_IFDIR
+# endif
-#if !defined(WINNT)
-#define NO_SYSLOG
-#endif
-#define NO_DIRENT
+# ifndef S_IFMT
+# define S_IFMT _S_IFMT
+# endif
-#endif
+# if !defined(WINNT)
+# define NO_SYSLOG
+# endif
+# define NO_DIRENT
# ifdef WINDOWS
# include <windows.h>
@@ -195,29 +194,29 @@ extern "C" {
# include <io.h>
# include <fcntl.h>
-#if defined (__BORLANDC__)
-#define _setmode setmode
-#define _O_TEXT O_TEXT
-#define _O_BINARY O_BINARY
-#define _int64 __int64
-#define _kbhit kbhit
-#endif
+# if defined (__BORLANDC__)
+# define _setmode setmode
+# define _O_TEXT O_TEXT
+# define _O_BINARY O_BINARY
+# define _int64 __int64
+# define _kbhit kbhit
+# endif
-#if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST)
-# define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); }
-#else
-# define EXIT(n) return(n);
-#endif
+# if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST)
+# define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); }
+# else
+# define EXIT(n) return(n);
+# endif
# define LIST_SEPARATOR_CHAR ';'
-#ifndef X_OK
-# define X_OK 0
-#endif
-#ifndef W_OK
-# define W_OK 2
-#endif
-#ifndef R_OK
-# define R_OK 4
-#endif
+# ifndef X_OK
+# define X_OK 0
+# endif
+# ifndef W_OK
+# define W_OK 2
+# endif
+# ifndef R_OK
+# define R_OK 4
+# endif
# define OPENSSL_CONF "openssl.cnf"
# define SSLEAY_CONF OPENSSL_CONF
# define NUL_DEV "nul"