You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jerker B�ck <in...@telia.com> on 2001/03/11 22:43:48 UTC
os-windows/7387: winsock.h is included in service.c
>Number: 7387
>Category: os-windows
>Synopsis: winsock.h is included in service.c
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Sun Mar 11 13:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: info.jelmar@telia.com
>Release: 2.014
>Organization:
apache
>Environment:
WinNT4 sp6 with VC++7 (beta1)
>Description:
winsock.h is included by windows.h before we include winsock2.h -> fatal compile error.
Another thing (not a bug): some headers do not have the
#ifdef __cplusplus
extern "C" {
#endif
which leads to unresolved external error in C++ - code. Please, put them in!
Ex: mpm_winnt.h
>How-To-Repeat:
compile service.c in VC++
>Fix:
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef __cplusplus
extern "C" {
#endif
.........
#ifdef __cplusplus
}
#endif
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]