I need a new target OS for the OpenWatcom compiler. The compiler id configuration file contains this code:
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# elif defined(__VXWORKS__)
# define PLATFORM_ID "VxWorks"
# else /* unknown platform */
# define PLATFORM_ID
# endif
Here the following should be added:
# elif defined(__RDOS__)
# define PLATFORM_ID "RDOS"
Possibly other changes are needed as well to support target RDOS. OpenWatcom has supported target RDOS for many years, so it is strange that this target is not included.