'inbyte' was not declared in this scope



Hello

I am using the Xilinx Platform Studio to program a Xilinx FPGA and I
am trying to use C++. When I switch the compiler form gcc to g++ I
immediately get an error telling me that

mfs_filesys_util.c: In function 'int mfs_copy_stdin_to_file(char*)':
mfs_filesys_util.c:146: error: 'inbyte' was not declared in this scope

If anyone knows what the solution to this problem is I would be really
appreciative. Thanks.

Greg
.