Hi,
I downloaded some C source code that was written in Borland, which I am now trying to compile in Microsoft Visual C++
#include <stdio.h>
#include <conio.h>
#include <windows.h>
typedef short _stdcall (*inpfuncPtr)(short portaddr);
typedef void _stdcall (*oupfuncPtr)(short portaddr, short datum);
I get an error at both typedef lines:
test.c(5) : error C2059: syntax error : '('
test.c(6) : error C2059: syntax error : '('
Can someone tell me how to fix it so that it compiles?
I downloaded some C source code that was written in Borland, which I am now trying to compile in Microsoft Visual C++
#include <stdio.h>
#include <conio.h>
#include <windows.h>
typedef short _stdcall (*inpfuncPtr)(short portaddr);
typedef void _stdcall (*oupfuncPtr)(short portaddr, short datum);
I get an error at both typedef lines:
test.c(5) : error C2059: syntax error : '('
test.c(6) : error C2059: syntax error : '('
Can someone tell me how to fix it so that it compiles?