Changed inline to __inline.

Visual C does not accept the inline keyword, only __inline.

Visual C does not recognize the #warning compiler directive
This commit is contained in:
Six 2005-09-04 05:19:58 +00:00
parent 0a8f2fe25b
commit 38e3825516
4 changed files with 7 additions and 5 deletions

View file

@ -2837,12 +2837,12 @@ if the full version is not found
*/ */
static void FS_SetRestrictions( void ) { static void FS_SetRestrictions( void ) {
searchpath_t *path; searchpath_t *path;
char *productId;
Com_Printf("smells like demo data, continueing anyways\n"); Com_Printf("smells like demo data, continueing anyways\n");
return; // return;
#ifndef PRE_RELEASE_DEMO #ifndef PRE_RELEASE_DEMO
char *productId;
// if fs_restrict is set, don't even look for the id file, // if fs_restrict is set, don't even look for the id file,
// which allows the demo release to be tested even if // which allows the demo release to be tested even if

View file

@ -326,7 +326,7 @@ void *VM_ArgPtr( long intValue );
void *VM_ExplicitArgPtr( vm_t *vm, long intValue ); void *VM_ExplicitArgPtr( vm_t *vm, long intValue );
#define VMA(x) VM_ArgPtr(args[x]) #define VMA(x) VM_ArgPtr(args[x])
static inline float _vmf(long x) static __inline float _vmf(long x)
{ {
union { union {
long l; long l;

View file

@ -1005,7 +1005,7 @@ qsort replacement
================= =================
*/ */
static inline void SWAP_DRAW_SURF(drawSurf_t* a, drawSurf_t* b) static __inline void SWAP_DRAW_SURF(drawSurf_t* a, drawSurf_t* b)
{ {
drawSurf_t t; drawSurf_t t;
memcpy(&t, a, sizeof(t)); memcpy(&t, a, sizeof(t));

View file

@ -43,7 +43,9 @@ static char **shaderTextHashTable[MAX_SHADERTEXT_HASH];
return a hash value for the filename return a hash value for the filename
================ ================
*/ */
#warning TODO: check if long is ok here #ifdef __GNUCC__
#warning TODO: check if long is ok here
#endif
static long generateHashValue( const char *fname, const int size ) { static long generateHashValue( const char *fname, const int size ) {
int i; int i;
long hash; long hash;