summaryrefslogtreecommitdiff
path: root/games/o2em/wordsize.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-02-17 22:50:54 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-02-28 09:42:03 -0600
commitf68c028e33fb9fb0d3267cd72fe26f432b1ea643 (patch)
treeffef188fedfaa9c1dd69c6e5c9c105153015e635 /games/o2em/wordsize.diff
parent848cabfbeb0846e0de4597fd83f555c274740311 (diff)
downloadslackbuilds-f68c028e33fb9fb0d3267cd72fe26f432b1ea643.tar.gz
games/o2em: Added (Magnavox Odyssey II/VideoPac+ emulator)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/o2em/wordsize.diff')
-rw-r--r--games/o2em/wordsize.diff47
1 files changed, 47 insertions, 0 deletions
diff --git a/games/o2em/wordsize.diff b/games/o2em/wordsize.diff
new file mode 100644
index 0000000000..f62b1574f8
--- /dev/null
+++ b/games/o2em/wordsize.diff
@@ -0,0 +1,47 @@
+diff -Naur o2em118src/src/crc32.c o2em118src.patched//src/crc32.c
+--- o2em118src/src/crc32.c 2006-10-08 10:46:16.000000000 -0400
++++ o2em118src.patched//src/crc32.c 2011-01-13 17:40:03.000000000 -0500
+@@ -20,7 +20,7 @@
+ #include "crc32.h"
+
+
+-static unsigned long crc32tab[256] = {
++static unsigned int crc32tab[256] = {
+ 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
+ 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
+ 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
+@@ -88,8 +88,8 @@
+ };
+
+
+-unsigned long crc32_buf(const void *buf, long len){
+- unsigned long crc = ~0;
++unsigned int crc32_buf(const void *buf, int len){
++ unsigned int crc = ~0;
+ unsigned char *p = (unsigned char*)buf;
+
+ while (len--) crc = (crc >> 8) ^ crc32tab[(crc ^ (*p++)) & 0xff];
+@@ -97,8 +97,8 @@
+ }
+
+
+-unsigned long crc32_file(const char *filename){
+- unsigned long crc = ~0;
++unsigned int crc32_file(const char *filename){
++ unsigned int crc = ~0;
+ FILE *f;
+ int c;
+ f = fopen(filename,"rb");
+diff -Naur o2em118src/src/crc32.h o2em118src.patched//src/crc32.h
+--- o2em118src/src/crc32.h 2004-12-28 01:53:00.000000000 -0500
++++ o2em118src.patched//src/crc32.h 2011-01-13 17:40:12.000000000 -0500
+@@ -1,7 +1,7 @@
+ #ifndef __CRC32_H
+ #define __CRC32_H
+
+-unsigned long crc32_buf(const void *buf, long len);
+-unsigned long crc32_file(const char *filename);
++unsigned int crc32_buf(const void *buf, int len);
++unsigned int crc32_file(const char *filename);
+
+ #endif