I have gcc version 2.95.3 (shipped with mandrake 7.1),
when I try to compile a file which includes sys/io.h I get strange problems:
 
 
the c-code
=============
#include <sys/io.h>
 
void main(void)
{
    ;
}
=============
g++ file.c
 
result:
In file included from file.c:
/usr/include/sys/io.h: In function "void outl(unsigned int, short unsigned int)":
/usr/include/sys/io.h:125:parse error before "::"
 
the piece of code in io.h:
====================
122:extern inline void
123:outl(unsigned short value, unsigned short port)
124:{
125:    __asm__ __volatile__ ("outl %0, %w1::"a" (value), "Nd" (port));
126:}
=====================
 
Can anybody tell me whats wrong, it is a standard include file?
 
Regards
Bert
 

Reply via email to