vcl_cstdlib.h

来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef vcl_win32_vc60_cstdlib_h_
#define vcl_win32_vc60_cstdlib_h_

#include <cstdlib>

// VC6 does not declare the cstdlib functions in the std namespace.

#ifndef vcl_abs
# define vcl_abs vcl_abs
#endif
#ifndef vcl_labs
# define vcl_labs vcl_labs
#endif
#ifndef vcl_div
# define vcl_div vcl_div
#endif
#ifndef vcl_ldiv
# define vcl_ldiv vcl_ldiv
#endif

#define vcl_generic_cstdlib_STD
#include "../generic/vcl_cstdlib.h"

inline int vcl_abs(int x) { return x >= 0 ? x : -x; }
inline long vcl_abs(long x) { return x >= 0 ? x : -x; }
inline long vcl_labs(long x) { return x >= 0 ? x : -x; }
inline div_t vcl_div(int x, int y) { return ::div(x,y); }
inline ldiv_t vcl_div(long x, long y) { return ::ldiv(x,y); }  
inline ldiv_t vcl_ldiv(long x, long y) { return ::ldiv(x,y); }

#endif // vcl_win32_vc60_cstdlib_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?