Errors in C 6.00 PMSHL.H Cause Problems with Switch List Usage

ID Number: Q66341

6.00

OS/2

buglist6.00 fixlist6.00a

Summary:

You may encounter a problem when trying to build an application that

makes use of various "PM Switch List" information. The symptoms may

include "typedef not defined" errors at compile time or "unresolved

external reference" errors at link time.

This problem is most likely caused by a problem with the PMSHL.H file

that shipped with the OS/2 Presentation Manager Toolkit version 1.20

or Microsoft C version 6.00. Because of a problem in the #ifdef logic,

certain sections of the include file may be undefined when they are

actually needed.

Microsoft has confirmed this to be a problem in C version 6.00. This

problem was corrected in C version 6.00a.

More Information:

To correct the errors in the C 6.00 version of PMSHL.H, the following

modifications are required:

On line 286, change

#endif /* not INCL_NOCOMMON */

to the following:

#ifdef INCL_WINSWITCHLIST

On line 319, change

#endif

to the following:

#endif /* INCL_WINSWITCHLIST */

#endif /* INCL_WINSWITCHLIST or NOT INCL_NOCOMMON */

Because another #ifdef is added, it must be resolved by adding a

closing #endif.