areaDetector / ADSupport

Source code for support libraries for areaDetector.
https://areadetector.github.io/areaDetector/user_guide.html
Other
1 stars 15 forks source link

Fixed utf8proc.h for vxWorks 6.6, possibly earlier. #1

Closed bhill-slac closed 8 years ago

bhill-slac commented 8 years ago

Root cause of "error: two or more data types in declaration specifiers" is that the vxWorks g++ is treating _Bool as something other than just an identifier. Not sure what, as it doesn't appear in predefined compiler macros or pre-processed output, but just changing the _Bool identifier to utf8proc_bool fixes it. I also found I could avoid the entire problem for vxWorks 6.6 by setting HAVE_STDBOOL_H so rolled back the version test from 6.8 to 6.6. Either fix is sufficient for vxWorks 6.6, and hopefully together will cover most vxWorks versions.

MarkRivers commented 8 years ago

Thanks for fixing that. Your change to utf8proc.h exposed a problem with mingw. It was defining HAVE__BOOL, but that was not correct. I have fixed that in os/WIN32/config.h.