Open Watcom's syntax supports many conventions introduced by other compilers, such as
Microsoft's and
Borland's, including differing conventions regarding (for instance) the number of leading underscores on the "asm" tag. Code written specifically for another compiler rather than standard-compliant C or C++ will often compile with the Watcom compiler. The C compiler supports
ANSI C (C89, C90, ISO C) standard by default. Open Watcom supports partial compatibility with the
C99 standard. It implements the most commonly used parts of the standard, including inline variable declaration. However, they are enabled only through the undocumented command-line switch "-za99" (which needs to be added to the "Other options" field in "4. Miscellaneous Switches" panel in the GUI). In a more recent version of Open Watcom 2.0, a check box was added for C99 in the "2. Diagnostics Switches" panel in the GUI. Three C99 features have been bundled as
C90 Extension since pre-v1.0: C++ style comments (//), flexible array members, trailing comma allowed in enum declaration. The compiler currently doesn't support any new major
C11 features, though the C library does include "Safe C" functions. It is specified in ISO/IEC TR 24731-1 and known as "Bounds-checking interfaces (Annex K)" in C11. Some function name examples are strcpy_s(), memcpy_s(), printf_s(). This library was released along with Open Watcom 1.5 in April 2006. ==Reception==