os_predef.h (pymol-v1.8.6.0.tar.bz2) | : | os_predef.h (pymol-v2.1.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 109 | skipping to change at line 109 | |||
/* END PROPRIETARY CODE SEGMENT */ | /* END PROPRIETARY CODE SEGMENT */ | |||
#ifdef __linux__ | #ifdef __linux__ | |||
#include <malloc.h> | #include <malloc.h> | |||
#else | #else | |||
#include <stddef.h> | #include <stddef.h> | |||
#endif | #endif | |||
#if defined(_WIN32) || defined(_WIN64) | #if defined(_WIN32) || defined(_WIN64) | |||
#pragma warning (disable:4996) | #pragma warning (disable:4996) | |||
#ifndef snprintf | #if !defined(snprintf) && (_MSC_VER < 1900) | |||
#define snprintf sprintf_s | #define snprintf sprintf_s | |||
#endif | #endif | |||
#endif | #endif | |||
#include "ov_types.h" | #include "ov_types.h" | |||
// alternative to std::swap if references are not allowed (e.g. bit fields) | // alternative to std::swap if references are not allowed (e.g. bit fields) | |||
#define SWAP_NOREF(a, b) {auto _t=(a);(a)=(b);(b)=_t;} | #define SWAP_NOREF(a, b) {auto _t=(a);(a)=(b);(b)=_t;} | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |