An error is produced when processing an enum that contains a #define. I tried swig1.3.38 on Linux and swig 1.3.40 on Windows. A trivial example is attached:
C:\swigwin-1.3.40>swig -java -module test H:\test.c
H:\test.c(2): Error: Syntax error in input(1).
There is no problem when the #define is placed outside of the enum.
Example showing a #define within an enum.
Duplicate of SF#940318.