[quake3-bugzilla] [Bug 4887] New: incompatible implicit declarations for the llabs() function on an x86_64 system

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Thu Jan 27 02:09:13 EST 2011


https://bugzilla.icculus.org/show_bug.cgi?id=4887

           Summary: incompatible implicit declarations for the llabs()
                    function on an x86_64 system
           Product: ioquake3
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: zakk at icculus.org
         QAContact: quake3-bugzilla at icculus.org


in `man llabs`:

    For llabs() to be declared, it may be necessary to define _ISOC99_SOURCE or
_ISOC9X_SOURCE (depending on the version of glibc) before including any
standard headers.

ok i've defined _ISOC9X_SOURCE, and the warnings went away. however i don't
know what effect this might have on other systems

diff --git a/code/qcommon/vm_x86_64_assembler.c
b/code/qcommon/vm_x86_64_assemble
index 1771284..0f50d76 100644
--- a/code/qcommon/vm_x86_64_assembler.c
+++ b/code/qcommon/vm_x86_64_assembler.c
@@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 
0211
 ===========================================================================
 */                                                                             

+#define _ISOC9X_SOURCE 1 // needed for llabs on some systems
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list