]> git.sur5r.net Git - openldap/blob - servers/slapd/back-perl/asperl_undefs.h
#include Perl files before OpenLDAP files, and #undef _ (ITS#2513)
[openldap] / servers / slapd / back-perl / asperl_undefs.h
1 /*
2  * Copyright 1999-2003 The OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 /* This file is probably obsolete.  If it is not,        */
7 /* #inclusion of it may have to be moved.  See ITS#2513. */
8
9 /* This file is necessary because both PERL headers */
10 /* and OpenLDAP define a number of macros without   */
11 /* checking wether they're already defined */
12
13 #ifndef ASPERL_UNDEFS_H
14 #define ASPERL_UNDEFS_H
15
16 /* ActiveState Win32 PERL port support */
17 /* set in ldap/include/portable.h */
18 #  ifdef HAVE_WIN32_ASPERL
19 /* The following macros are undefined to prevent */
20 /* redefinition in PERL headers*/
21 #    undef gid_t
22 #    undef uid_t
23 #    undef mode_t
24 #    undef caddr_t
25 #    undef WIN32_LEAN_AND_MEAN
26 #  endif
27 #endif
28