Pelles C forum

Pelles C => Bug reports => Topic started by: Jacky on March 31, 2016, 11:11:11 AM

Title: shappmgr.h #ifdef & #endif mismatch
Post by: Jacky on March 31, 2016, 11:11:11 AM
Several times I inlcude the header file shappmgr.h, Pelles C reports a lot of errors. After checking carefully, I found the problem and fix my local file. It happened a long time ago, later I forgot it. Recently I meet this problem again so I should report it to official. You may see the attachment images. The left side is incorrect version (original file from Pelles C), the right side is the modified version in Pelles C installation directory. The original version from Pelles C has only one "#ifndef _SHAPPMGR_H_" checking, the microsoft version has two, "#ifndef __shappmgr_h__" & "#ifndef _SHAPPMGR_H_", and the lowercase macro name is the first one. But the Pelles C version missed the second one, and the only one left, also, the first macro name is uppercase.