From f523ce38f899c110fb319ecc48f964c0a49364ae Mon Sep 17 00:00:00 2001 From: Ken Block Date: Mon, 10 Jul 2000 07:17:35 +0000 Subject: [PATCH] * libltdl/ltdl.h: Also check for __cplusplus, __STDC__ is not by Compaq C++ compiler --- ChangeLog | 5 +++++ libltdl/ltdl.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8c0f80f44..4a29d89aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-10 Ken Block + + * libltdl/ltdl.h: Also check for __cplusplus, __STDC__ is not + by Compaq C++ compiler + 2000-07-10 Alexandre Oliva * ltconfig.in (wlarc, netbsd, aout): Set to empty. diff --git a/libltdl/ltdl.h b/libltdl/ltdl.h index 96e076faa..666c785c8 100644 --- a/libltdl/ltdl.h +++ b/libltdl/ltdl.h @@ -136,7 +136,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA LTDL_ERROR(SHUTDOWN, "library already shutdown") /* Enumerate the symbolic error names. */ -#ifdef __STDC__ +#if defined(__STDC__) || defined(__cplusplus) # define LTDL_ERROR(name, diagnostic) LTDL_ERROR_##name, #else # define LTDL_ERROR(name, diagnostic) LTDL_ERROR_/**/name, -- 2.47.3