diff options
author | Jaime Fullaondo <truthbk@gmail.com> | 2018-10-11 06:25:03 -0400 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-10-11 12:25:03 +0200 |
commit | 659f3a36626e16405eee030b695136884ea4a220 (patch) | |
tree | 847e4095780ed59cef5d7dfc459413371c2eff2c /psutil/_psutil_posix.c | |
parent | 15b00d8a57630adc4ad31bd28c455382d00f2d36 (diff) | |
download | psutil-659f3a36626e16405eee030b695136884ea4a220.tar.gz |
[aix] improve compilation on AIX, better support for gcc/g++ + fix cpu metrics (#1320)
Diffstat (limited to 'psutil/_psutil_posix.c')
-rw-r--r-- | psutil/_psutil_posix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c index c851abbc..d9a8f6d1 100644 --- a/psutil/_psutil_posix.c +++ b/psutil/_psutil_posix.c @@ -655,6 +655,10 @@ struct module_state { #define GETSTATE(m) (&_state) #endif +#ifdef __cplusplus +extern "C" { +#endif + #if PY_MAJOR_VERSION >= 3 static int @@ -708,3 +712,7 @@ void init_psutil_posix(void) return module; #endif } + +#ifdef __cplusplus +} +#endif |