r186 - trunk/code/unix

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 26 19:15:44 EDT 2005


Author: tma
Date: 2005-10-26 19:15:44 -0400 (Wed, 26 Oct 2005)
New Revision: 186

Modified:
   trunk/code/unix/unix_main.c
Log:
* Add notional support for various architectures from vapier. Whether or not
  these architectures work in practice is another matter :).


Modified: trunk/code/unix/unix_main.c
===================================================================
--- trunk/code/unix/unix_main.c	2005-10-26 23:08:56 UTC (rev 185)
+++ trunk/code/unix/unix_main.c	2005-10-26 23:15:44 UTC (rev 186)
@@ -368,6 +368,16 @@
   Cvar_Set( "arch", "linux alpha" );
 #  elif defined __sparc__
   Cvar_Set( "arch", "linux sparc" );
+#  elif defined __arm__
+  Cvar_Set( "arch", "linux arm" );
+#  elif defined __cris__
+  Cvar_Set( "arch", "linux cris" );
+#  elif defined __hppa__
+  Cvar_Set( "arch", "linux hppa" );
+#  elif defined __mips__
+  Cvar_Set( "arch", "linux mips" );
+#  elif defined __sh__
+  Cvar_Set( "arch", "linux sh" );
 # else
 # error unsupported architecture
 #endif
@@ -780,10 +790,18 @@
   snprintf (fname, sizeof(fname), "%ss390x.so", name);
 #elif defined __ia64__
   snprintf (fname, sizeof(fname), "%sia64.so", name);
-#elif defined __axp__
+#elif defined __alpha__
   snprintf (fname, sizeof(fname), "%saxp.so", name);
 #elif defined __mips__
   snprintf (fname, sizeof(fname), "%smips.so", name);
+#elif defined __arm__
+  snprintf (fname, sizeof(fname), "%sarm.so", name);
+#elif defined __cris__
+  snprintf (fname, sizeof(fname), "%scris.so", name);
+#elif defined __hppa__
+  snprintf (fname, sizeof(fname), "%shppa.so", name);
+#elif defined __sh__
+  snprintf (fname, sizeof(fname), "%ssh.so", name);
 #else
 #error Unknown arch
 #endif




More information about the quake3-commits mailing list