summaryrefslogtreecommitdiff
path: root/community/fceux/fceux-2.1.5-gcc47.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/fceux/fceux-2.1.5-gcc47.patch')
-rw-r--r--community/fceux/fceux-2.1.5-gcc47.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/fceux/fceux-2.1.5-gcc47.patch b/community/fceux/fceux-2.1.5-gcc47.patch
new file mode 100644
index 000000000..8d6891dfa
--- /dev/null
+++ b/community/fceux/fceux-2.1.5-gcc47.patch
@@ -0,0 +1,22 @@
+--- fceu2.1.5.orig/src/utils/endian.h 2010-11-07 18:33:11.000000000 -0500
++++ fceu2.1.5/src/utils/endian.h 2012-12-19 10:36:45.076124554 -0500
+@@ -93,19 +93,5 @@
+ }
+ }
+
+-template<typename T>
+-int writele(T *Bufo, EMUFILE*os)
+-{
+- CTASSERT(sizeof(T)==1||sizeof(T)==2||sizeof(T)==4||sizeof(T)==8);
+- switch(sizeof(T)) {
+- case 1: return write8le((uint8*)Bufo,os);
+- case 2: return write16le((uint16*)Bufo,os);
+- case 4: return write32le((uint32*)Bufo,os);
+- case 8: return write64le((uint64*)Bufo,os);
+- default:
+- return 0;
+- }
+-}
+-
+ #endif //__FCEU_ENDIAN
+