[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GMP C/C++ namespace conflict
From: |
Hans Aberg |
Subject: |
Re: GMP C/C++ namespace conflict |
Date: |
Mon, 30 Apr 2001 12:36:50 +0200 |
At 12:24 +0200 2001/04/30, Hans Aberg wrote:
>If you include the C header <stddef.h>, which then under C++ should
>include <cstddef>, before the above write
>
>#ifdef __cplusplus
>#include <cstddef>
>#else
>#include <stddef.h>
>#endif
>
>That should do it.
Oops. If one is doing it, size_t will be named std::size_t. So one might add
#ifdef __cplusplus
#define size_t std::size_t
#endif
/* C declarations */
#ifdef __cplusplus
#undef size_t
#endif
Hans Aberg
- Re: GMP C/C++ namespace conflict,
Hans Aberg <=