Mercurial > cpython-lru_cache-weakref
diff Include/cStringIO.h @ 25553:f61d1d2b9ce3 2.2
Backport patch (also pointed out in SF #607253):
date: 2002/03/30 08:57:12; author: loewis;
Patch #536908: Add missing #include guards/extern "C".
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 04 Oct 2002 12:35:17 +0000 |
| parents | ac5489a2548d |
| children | 488295d1ba11 f1af8ad11000 |
line wrap: on
line diff
--- a/Include/cStringIO.h Fri Oct 04 10:16:27 2002 +0000 +++ b/Include/cStringIO.h Fri Oct 04 12:35:17 2002 +0000 @@ -1,5 +1,8 @@ #ifndef CSTRINGIO_INCLUDED #define CSTRINGIO_INCLUDED +#ifdef __cplusplus +extern "C" { +#endif /* cStringIO.h,v 1.4 1997/12/07 14:27:00 jim Exp @@ -128,4 +131,7 @@ #define PycString_IMPORT \ PycStringIO=(struct PycStringIO_CAPI*)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI") +#ifdef __cplusplus +} +#endif #endif /* CSTRINGIO_INCLUDED */
