25 lines
572 B
Plaintext
25 lines
572 B
Plaintext
$OpenBSD: patch-image_image_xwd_c,v 1.2 2015/06/26 12:29:11 ajacoutot Exp $
|
|
--- image/image_xwd.c.orig Tue Dec 10 21:33:18 2013
|
|
+++ image/image_xwd.c Fri Jun 26 14:16:18 2015
|
|
@@ -88,6 +88,7 @@ typedef union
|
|
/***************************************
|
|
***************************************/
|
|
|
|
+#ifndef swap32
|
|
static CARD32
|
|
swap32( CARD32 in )
|
|
{
|
|
@@ -104,9 +105,12 @@ swap32( CARD32 in )
|
|
|
|
return t.l;
|
|
}
|
|
+#endif
|
|
|
|
|
|
+#ifndef swap16
|
|
#define swap16( a ) ( ( ( ( a ) &0xff ) <<8 ) | ( ( ( a ) >> 8 ) & 0xff ) )
|
|
+#endif
|
|
|
|
|
|
/***************************************
|