summaryrefslogtreecommitdiff
path: root/emulators/generator/patches/patch-ae
blob: 16573fb052ac7f99b796a6ccbbff867594293af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ae,v 1.2 2005/01/31 23:58:33 xtraeme Exp $

--- hdr/generator.h.orig	2003-05-04 20:50:43.000000000 +0200
+++ hdr/generator.h	2005-02-01 00:46:44.000000000 +0100
@@ -21,6 +21,11 @@
   #include <machine/endian.h>
   #define SWAP16(x) bswap_16((x))
   #define SWAP32(x) bswap_32((x))
+#elif defined(__NetBSD__)
+  #include <sys/types.h>
+  #include <machine/endian.h>
+  #define SWAP16(x) bswap16((x))
+  #define SWAP32(x) bswap32((x))
 #else
   #define SWAP16(y) (( ((y)>>8) & 0x00ff) | (( ((y)<<8) & 0xff00)))
   #define SWAP32(y) (( ((y)>>24) & 0x000000ff) | \
@@ -221,11 +226,11 @@
 #  define LOG_DEBUG3(x)   /* ui_log_debug3 ## x */
 #  define LOG_DEBUG2(x)   /* ui_log_debug2 ## x */
 #  define LOG_DEBUG1(x)   /* ui_log_debug1 ## x */
-#  define LOG_USER(x)     ui_log_user ## x
-#  define LOG_VERBOSE(x)  ui_log_verbose ## x
-#  define LOG_NORMAL(x)   ui_log_normal ## x
-#  define LOG_CRITICAL(x) ui_log_critical ## x
-#  define LOG_REQUEST(x)  ui_log_request ## x
+#  define LOG_USER(x)     ui_log_user x
+#  define LOG_VERBOSE(x)  ui_log_verbose x
+#  define LOG_NORMAL(x)   ui_log_normal x
+#  define LOG_CRITICAL(x) ui_log_critical x
+#  define LOG_REQUEST(x)  ui_log_request x
 #endif
 
 typedef struct {