I tried to move the original cypress fx2.h and fx2regs.h into include folder of sdcc and the original i2c.c file (library module) to bin. I compiled the i2c.c file without any modification because i would like to check if the original cypress can be compiled by sdcc and if not, what are the possible errors and try to correct from there.
I type the command: sdcc -c i2c.c
and i got a long same repeating (too many to be countable) warnings report:
C:/sdcc/include/fx2regs.h:270:46: warning: pasting "/" and "/" does not give a
valid preprocessing token
C:/sdcc/include/fx2regs.h:42: syntax error: token -> '/' ; column 44
Anyone who might know why is this happening?