[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/win
From: Ralf Habacker <Ralf.Habacker () freenet ! de>
Date: 2006-03-17 11:42:00
Message-ID: 1142595720.607662.22874.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 519502 by habacker:
moved _set_errno into separate source file
M +1 -0 CMakeLists.txt
M +1 -2 include/mingw/errno.h
A include/msvc/errno.h [License: LGPL (v2+)]
M +0 -9 src/inet.c
M +0 -9 src/mmap.c
--- trunk/KDE/kdelibs/win/CMakeLists.txt #519501:519502
@@ -47,6 +47,7 @@
set(win_LIB_SRCS
src/bootstrap.cpp
+ src/errno.c
src/fcntl.c
src/fsync.c
src/getenv.c
--- trunk/KDE/kdelibs/win/include/mingw/errno.h #519501:519502
@@ -23,8 +23,7 @@
#include <sys/types.h>
#include <../include/errno.h>
-// has to be checked
-#define _set_errno(a) errno=a
+KDEWIN32_EXPORT int __cdecl _set_errno(int value);
#define ENOTSUP ENOSYS
--- trunk/KDE/kdelibs/win/src/inet.c #519501:519502
@@ -25,15 +25,6 @@
#include <arpa/inet.h>
#include <ws2tcpip.h>
-#ifndef _CRT_ERRNO_DEFINED
-#define _CRT_ERRNO_DEFINED
-static int __cdecl _set_errno(int _Value)
-{
- errno = _Value;
- return 0;
-}
-#endif
-
#ifdef __MINGW32__
#define U_WORD(a,i) (a)->_S6_un._S6_u16[i]
#else
--- trunk/KDE/kdelibs/win/src/mmap.c #519501:519502
@@ -30,15 +30,6 @@
#include <sys/mman.h>
#include <sys/socket.h>
-#ifndef _CRT_ERRNO_DEFINED
-#define _CRT_ERRNO_DEFINED
-static int __cdecl _set_errno(int _Value)
-{
- errno = _Value;
- return 0;
-}
-#endif
-
#ifndef SECTION_MAP_EXECUTE_EXPLICIT
//not defined in the February 2003 version of the Platform SDK
#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic