aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-26 02:36:52 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-26 02:36:52 +0000
commita56d9f49ad0c5dc499a9c622a74721af0fc70645 (patch)
treeae712a71fd68b231b38892a4ef8c6e3add27c456 /code
parent2bedbb7b64f24e90ea4dcef102c96fe3690a52b6 (diff)
downloadioquake3-aero-a56d9f49ad0c5dc499a9c622a74721af0fc70645.tar.gz
ioquake3-aero-a56d9f49ad0c5dc499a9c622a74721af0fc70645.zip
Hopefully this will fix win32 msvc.netsuperduper++220000 extra entropy edition
compilation, and I updated the readme a little apparently. git-svn-id: svn://svn.icculus.org/quake3/trunk@109 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/qcommon/vm_x86.c12
-rw-r--r--code/renderer/tr_model.c4
-rw-r--r--code/win32/win_main.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c
index dbc1f37..a1e3317 100644
--- a/code/qcommon/vm_x86.c
+++ b/code/qcommon/vm_x86.c
@@ -60,10 +60,10 @@ int _ftol( float );
static int ftolPtr = (int)_ftol;
#endif
-void doAsmCall( void );
-static int asmCallPtr = (int)doAsmCall;
+void AsmCall( void );
+static int asmCallPtr = (int)AsmCall;
-#else // _WIN32
+#else // _MSC_VER
#if defined( FTOL_PTR )
// bk001213 - BEWARE: does not work! UI menu etc. broken - stack!
@@ -79,8 +79,8 @@ int qftol0F7F( void );
static int ftolPtr = (int)qftol0F7F;
#endif // FTOL_PTR
-void doAsmCall( void );
-static int asmCallPtr = (int)doAsmCall;
+void AsmCall( void );
+static int asmCallPtr = (int)AsmCall;
#endif // !_WIN32
@@ -198,7 +198,7 @@ void callAsmCall(void)
}
void AsmCall( void ) {
- asm( CMANG(doAsmCall) ": \n\t" \
+ asm( CMANG(AsmCall) ": \n\t" \
" movl (%%edi),%%eax \n\t" \
" subl $4,%%edi \n\t" \
" orl %%eax,%%eax \n\t" \
diff --git a/code/renderer/tr_model.c b/code/renderer/tr_model.c
index 80b8094..d7aad51 100644
--- a/code/renderer/tr_model.c
+++ b/code/renderer/tr_model.c
@@ -180,9 +180,9 @@ qhandle_t RE_RegisterModel( const char *name ) {
for ( lod = MD3_MAX_LODS - 1 ; lod >= 0 ; lod-- ) {
if ( lod )
- snprintf(namebuf, sizeof(namebuf), "%s_%d.%s", filename, lod, fext);
+ Com_sprintf(namebuf, sizeof(namebuf), "%s_%d.%s", filename, lod, fext);
else
- snprintf(namebuf, sizeof(namebuf), "%s.%s", filename, fext);
+ Com_sprintf(namebuf, sizeof(namebuf), "%s.%s", filename, fext);
ri.FS_ReadFile( namebuf, (void **)&buf );
if ( !buf ) {
diff --git a/code/win32/win_main.c b/code/win32/win_main.c
index a66f712..6980bd4 100644
--- a/code/win32/win_main.c
+++ b/code/win32/win_main.c
@@ -606,8 +606,8 @@ void * QDECL Sys_LoadDll( const char *name, char *fqpath , long (QDECL **entryPo
}
#endif
- dllEntry = ( void (QDECL *)( int (QDECL *)( int, ... ) ) )GetProcAddress( libHandle, "dllEntry" );
- *entryPoint = (int (QDECL *)(int,...))GetProcAddress( libHandle, "vmMain" );
+ dllEntry = ( void (QDECL *)(long (QDECL *)( long, ... ) ) )GetProcAddress( libHandle, "dllEntry" );
+ *entryPoint = (long (QDECL *)(long,...))GetProcAddress( libHandle, "vmMain" );
if ( !*entryPoint || !dllEntry ) {
FreeLibrary( libHandle );
return NULL;