#include Perl files before OpenLDAP files, and #undef _ (ITS#2513)

This commit is contained in:
Hallvard Furuseth 2003-06-05 11:44:06 +00:00
parent d7c2f20ba7
commit 579e768046
11 changed files with 84 additions and 63 deletions

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"

View File

@ -2,6 +2,10 @@
* Copyright 1999-2003 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* This file is probably obsolete. If it is not, */
/* #inclusion of it may have to be moved. See ITS#2513. */
/* This file is necessary because both PERL headers */
/* and OpenLDAP define a number of macros without */
/* checking wether they're already defined */

View File

@ -13,18 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include "portable.h"
/* init.c - initialize Perl backend */
#include <stdio.h>
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#include "perl_back.h"

View File

@ -13,18 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include "portable.h"
/* init.c - initialize shell backend */
#include <stdio.h>
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#include "perl_back.h"

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "lutil.h"
#include "perl_back.h"

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"

View File

@ -13,18 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include "portable.h"
/* init.c - initialize shell backend */
#include <stdio.h>
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#include "perl_back.h"

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"

View File

@ -26,17 +26,19 @@
*
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"

View File

@ -13,17 +13,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
#include <EXTERN.h>
#include <perl.h>
#undef _ /* #defined used by both Perl and ac/localize.h */
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include "portable.h"
#include <stdio.h>
#include "slap.h"
#ifdef HAVE_WIN32_ASPERL
#include "asperl_undefs.h"
#endif
#include <EXTERN.h>
#include <perl.h>
#include "perl_back.h"