Index: /trunk/ChangeLog
===================================================================
--- /trunk/ChangeLog	(revision 6)
+++ /trunk/ChangeLog	(revision 7)
@@ -1,2 +1,6 @@
+1.2.2
+    * Fixed compilation under OpenBSD
+    * Unix EOF again
+
 1.2.1
     * Warnings cleanup, patch by Tomas Salfischberger, Thom Johansen and
Index: /trunk/configure.ac
===================================================================
--- /trunk/configure.ac	(revision 6)
+++ /trunk/configure.ac	(revision 7)
@@ -2,5 +2,5 @@
 AC_INIT(src/mpc_decoder.c)
 AC_CONFIG_AUX_DIR(config)
-AM_INIT_AUTOMAKE(libmpcdec,1.2.1)
+AM_INIT_AUTOMAKE(libmpcdec,1.2.2)
 AM_CONFIG_HEADER(include/config.h)
 
Index: /trunk/docs/Doxyfile
===================================================================
--- /trunk/docs/Doxyfile	(revision 6)
+++ /trunk/docs/Doxyfile	(revision 7)
@@ -24,5 +24,5 @@
 # if some version control system is used.
 
-PROJECT_NUMBER         = 1.2
+PROJECT_NUMBER         = 1.2.2
 
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
Index: /trunk/include/mpcdec/huffman.h
===================================================================
--- /trunk/include/mpcdec/huffman.h	(revision 6)
+++ /trunk/include/mpcdec/huffman.h	(revision 7)
Index: /trunk/include/mpcdec/internal.h
===================================================================
--- /trunk/include/mpcdec/internal.h	(revision 6)
+++ /trunk/include/mpcdec/internal.h	(revision 7)
@@ -46,5 +46,5 @@
 /// Big/little endian 32 bit byte swapping routine.
 static __inline
-mpc_uint32_t swap32(mpc_uint32_t val) {
+mpc_uint32_t mpc_swap32(mpc_uint32_t val) {
     return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) |
             ((val & 0x0000ff00) <<  8) | ((val & 0x000000ff) << 24));
Index: /trunk/include/mpcdec/reader.h
===================================================================
--- /trunk/include/mpcdec/reader.h	(revision 6)
+++ /trunk/include/mpcdec/reader.h	(revision 7)
Index: /trunk/src/Makefile.am
===================================================================
--- /trunk/src/Makefile.am	(revision 6)
+++ /trunk/src/Makefile.am	(revision 7)
@@ -14,5 +14,5 @@
 	streaminfo.c \
 	synth_filter.c
-libmpcdec_la_LDFLAGS = -no-undefined -version-info 4:0:1
+libmpcdec_la_LDFLAGS = -no-undefined -version-info 4:1:1
 
 noinst_PROGRAMS = sample
Index: /trunk/src/mpc_decoder.c
===================================================================
--- /trunk/src/mpc_decoder.c	(revision 6)
+++ /trunk/src/mpc_decoder.c	(revision 7)
@@ -84,5 +84,5 @@
     mpc_uint32_t n;
     for(n = 0; n< count; n++) {
-        ptr[n] = swap32(ptr[n]);
+        ptr[n] = mpc_swap32(ptr[n]);
     }
 #endif
@@ -324,5 +324,5 @@
 #ifdef MPC_LITTLE_ENDIAN
   for (i = 0; i < (in_len + 3) / 4; i++)
-    d->Speicher[i] = swap32(d->Speicher[i]);
+    d->Speicher[i] = mpc_swap32(d->Speicher[i]);
 #endif
   d->dword = d->Speicher[0];
Index: /trunk/src/streaminfo.c
===================================================================
--- /trunk/src/streaminfo.c	(revision 6)
+++ /trunk/src/streaminfo.c	(revision 7)
@@ -228,5 +228,5 @@
         mpc_uint32_t ptr;
         for (ptr = 0; ptr < 8; ptr++) {
-            HeaderData[ptr] = swap32(HeaderData[ptr]);
+            HeaderData[ptr] = mpc_swap32(HeaderData[ptr]);
         }
 #endif
