cstdlib
资源名称:Vc_STL.rar [点击查看]
上传用户:sichengcw
上传日期:2009-02-17
资源大小:202k
文件大小:0k
源码类别:
STL
开发平台:
Visual C++
- // The -*- C++ -*- standard library header.
- // This file is part of the GNU ANSI C++ Library.
- #ifndef __CSTDLIB__
- #define __CSTDLIB__
- #include <stdlib.h>
- #ifdef __GNUG__
- #pragma interface "cstdlib"
- #endif
- extern "C++" {
- #if _G_HAS_LABS
- inline long abs(long x) { return labs (x); }
- #else
- inline long abs(long x) { return x >= 0 ? x : -x; }
- #endif
- //inline ldiv_t div(long x, long y) { return ldiv (x, y); }
- } // extern "C++"
- #endif