Platform RDOS

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.

@rdos thanks. AFAIK the only reason this isn’t already supported is that no one has contributed it. Please see CONTRIBUTING.rst. If the changes involve more than pattern following and some design decisions are needed, please open an issue to discuss them.