[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs
From: Alexander Neundorf <neundorf () kde ! org>
Date: 2006-02-07 17:30:38
Message-ID: 1139333438.854372.14089.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 506825 by neundorf:
restore config.h.cmake: Peter, your changes to the prototypes and the HAVE_FOO_PROTO \
exactly worked against the purpose of this code. The HAVE_FOO_PROTO checks are there \
just for such systems which have the functions but don't have the prototype (you are \
free to consider such systems broken). Why shouldn't unistd.h included under windows \
? It should be possible to do this, if not, please fix the problem in unistd.h \
instead of adding hacks here.
CCMAIL: kde-buildsystem@kde.org
Alex
M +13 -18 config.h.cmake
--- trunk/KDE/kdelibs/config.h.cmake #506824:506825
@@ -320,7 +320,7 @@
/*********************/
-#if !defined(HAVE_GETHOSTNAME_PROTO) && !defined(HAVE_GETHOSTNAME)
+#if !defined(HAVE_GETHOSTNAME_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -332,13 +332,8 @@
-#if !defined(HAVE_INITGROUPS_PROTO) && !defined(HAVE_INITGROUPS)
-#ifndef _WIN32
+#if !defined(HAVE_INITGROUPS_PROTO)
#include <unistd.h>
-#else
-//don't include msvc/unistd.h
-typedef unsigned int gid_t;
-#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -350,7 +345,7 @@
-#if !defined(HAVE_MKDTEMP_PROTO) && !defined(HAVE_MKDTEMP)
+#if !defined(HAVE_MKDTEMP_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -362,7 +357,7 @@
-#if !defined(HAVE_MKSTEMPS_PROTO) && !defined(HAVE_MKSTEMPS)
+#if !defined(HAVE_MKSTEMPS_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -374,7 +369,7 @@
-#if !defined(HAVE_MKSTEMP_PROTO) && !defined(HAVE_MKSTEMP)
+#if !defined(HAVE_MKSTEMP_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -386,7 +381,7 @@
-#if !defined(HAVE_RANDOM_PROTO) && !defined(HAVE_RANDOM)
+#if !defined(HAVE_RANDOM_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -398,7 +393,7 @@
-#if !defined(HAVE_RES_INIT_PROTO) && !defined(HAVE_RES_INIT)
+#if !defined(HAVE_RES_INIT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -410,7 +405,7 @@
-#if !defined(HAVE_SETENV_PROTO) && !defined(HAVE_SETENV)
+#if !defined(HAVE_SETENV_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -422,7 +417,7 @@
-#if !defined(HAVE_SRANDOM_PROTO) && !defined(HAVE_SRANDOM)
+#if !defined(HAVE_SRANDOM_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -434,7 +429,7 @@
-#if !defined(HAVE_STRLCAT_PROTO) && !defined(HAVE_STRLCAT)
+#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -446,7 +441,7 @@
-#if !defined(HAVE_STRLCPY_PROTO) && !defined(HAVE_STRLCPY)
+#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -458,7 +453,7 @@
-#if !defined(HAVE_UNSETENV_PROTO) && !defined(HAVE_UNSETENV)
+#if !defined(HAVE_UNSETENV_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
@@ -470,7 +465,7 @@
-#if !defined(HAVE_USLEEP_PROTO) && !defined(HAVE_USLEEP)
+#if !defined(HAVE_USLEEP_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic