X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fnc_alloc.h;h=da70906f552ff35312d73b1ff957820f998228b6;hp=ab9f4a243acdcdeb56b5319caace21d6db5789c1;hb=7f0e189a3cf9bfbb89241cb41db6f2e7672f89f5;hpb=7a6bbc8cf41c5186d46accc3d08622dc86526b34 diff --git a/include/nc_alloc.h b/include/nc_alloc.h index ab9f4a24..da70906f 100644 --- a/include/nc_alloc.h +++ b/include/nc_alloc.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +29,7 @@ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: nc_alloc.h,v 1.17 2009/04/18 20:48:19 tom Exp $ */ +/* $Id: nc_alloc.h,v 1.18 2010/11/20 22:59:49 tom Exp $ */ #ifndef NC_ALLOC_included #define NC_ALLOC_included 1 @@ -38,7 +38,7 @@ extern "C" { #endif -#if HAVE_LIBDMALLOC +#if defined(HAVE_LIBDMALLOC) && HAVE_LIBDMALLOC #include #undef strndup /* workaround for #define in GLIBC 2.7 */ #include /* Gray Watson's library */ @@ -47,14 +47,14 @@ extern "C" { #define HAVE_LIBDMALLOC 0 #endif -#if HAVE_LIBDBMALLOC +#if defined(HAVE_LIBDBMALLOC) && HAVE_LIBDBMALLOC #include /* Conor Cahill's library */ #else #undef HAVE_LIBDBMALLOC #define HAVE_LIBDBMALLOC 0 #endif -#if HAVE_LIBMPATROL +#if defined(HAVE_LIBMPATROL) && HAVE_LIBMPATROL #include /* Memory-Patrol library */ #else #undef HAVE_LIBMPATROL