Tri*_*g3l
2
c
c++
std
errno
我对我应该在程序中使用errno()的实现感到困惑.
据我所知,标准的errno()在errno.h中定义.但是,Visual Studio在stdlib.h中也有errno().也许这是不正确的,但对我来说stdlib.h的errno()比errno.h更快.但是errno()也在stddef.h中定义.
我应该使用哪一个?#ifdef _WIN32 #include <stdlib.h> #else #include <errno.h> #endif?