aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author宋冬生 <dongsheng.song@gmail.com>2014-11-05 20:52:00 +0800
committerBrent Cook <bcook@openbsd.org>2014-11-18 07:41:08 -0600
commit648e9136276ca214a3af6c02e7b643d4029e3848 (patch)
treec5b05e95924f3e89edb2e5911ca6b91e25f36005
parentf223e6f14dc9ffc62860a76783c722380694bf2d (diff)
downloadportable-648e9136276ca214a3af6c02e7b643d4029e3848.tar.gz
portable-648e9136276ca214a3af6c02e7b643d4029e3848.tar.bz2
portable-648e9136276ca214a3af6c02e7b643d4029e3848.zip
Use _WIN32 instead of __WIN32.
ok bcook@
-rw-r--r--crypto/compat/arc4random.h2
-rw-r--r--include/machine/endian.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h
index 7af7fc1..53b5a46 100644
--- a/crypto/compat/arc4random.h
+++ b/crypto/compat/arc4random.h
@@ -15,7 +15,7 @@
15#elif defined(__sun) 15#elif defined(__sun)
16#include "arc4random_solaris.h" 16#include "arc4random_solaris.h"
17 17
18#elif defined(__WIN32) 18#elif defined(_WIN32)
19#include "arc4random_win.h" 19#include "arc4random_win.h"
20 20
21#else 21#else
diff --git a/include/machine/endian.h b/include/machine/endian.h
index 80b3f9c..e3120db 100644
--- a/include/machine/endian.h
+++ b/include/machine/endian.h
@@ -1,7 +1,7 @@
1#ifndef LIBCRYPTOCOMPAT_BYTE_ORDER_H_ 1#ifndef LIBCRYPTOCOMPAT_BYTE_ORDER_H_
2#define LIBCRYPTOCOMPAT_BYTE_ORDER_H_ 2#define LIBCRYPTOCOMPAT_BYTE_ORDER_H_
3 3
4#if defined(__WIN32) 4#if defined(_WIN32)
5 5
6#define LITTLE_ENDIAN 1234 6#define LITTLE_ENDIAN 1234
7#define BIG_ENDIAN 4321 7#define BIG_ENDIAN 4321