Solaris Intel stdarg.h problem

David Thompson dthompsn@cs.umt.edu
Thu Dec 7 10:06:00 GMT 2000


While trying to compile a program with gcc 2.95.2 that uses stdarg.h 
I found a syntax error. This same program compiled fine (with 
warnings) on my Solaris 8-sparc box, but it compiled. Comparing the 
two, I came to the conclusion that the line in stdarg.h that is 
currently:

#ifdef __sparc__

must be changed to

#if defined(__sparc__) || defined(__i386__)

for i386-pc-solaris2.7 to compile this code correctly. Is this 
correct? Does someone have a better solution?

The code included the files like the following.

#include <stdarg.h>
#include <stdio.h>

David
-- 
.............................................................................
David L. Thompson                          The University of Montana
mailto:dthompsn@cs.umt.edu                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                            Work Phone : (406)257-8530


More information about the Gcc-bugs mailing list