* clang support

This commit is contained in:
Tim Angus 2011-10-21 22:48:53 +00:00
parent f9cde509b2
commit 675e7a641a
9 changed files with 19 additions and 14 deletions

View file

@ -2329,7 +2329,10 @@ A way to force a bus error for development reasons
=================
*/
static void Com_Crash_f( void ) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnull-dereference"
* ( int * ) 0 = 0x12345678;
#pragma clang diagnostic pop
}
/*

View file

@ -179,7 +179,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define OS_STRING "kFreeBSD"
#endif
#ifdef __clang__
#define ID_INLINE static inline
#else
#define ID_INLINE inline
#endif
#define PATH_SEP '/'
#if defined __i386__

View file

@ -1250,7 +1250,7 @@ extern int ZEXPORT unzReadCurrentFile (file, buf, len)
return UNZ_PARAMERROR;
if ((pfile_in_zip_read_info->read_buffer == NULL))
if (pfile_in_zip_read_info->read_buffer == NULL)
return UNZ_END_OF_LIST_OF_FILE;
if (len==0)
return 0;