From 27efdd922da08d823e7c54913581c5c8cadbd6c1 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 22 Apr 2005 11:01:49 +0000 Subject: [PATCH] Move the testing for pid_t to config.h git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9857 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/Win32/config.h | 2 +- src/support/ChangeLog | 5 +++++ src/support/forkedcall.h | 5 ----- src/support/forkedcontr.h | 5 ----- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/development/Win32/config.h b/development/Win32/config.h index 113d7aa37d..b31b078f46 100644 --- a/development/Win32/config.h +++ b/development/Win32/config.h @@ -531,7 +531,7 @@ /* #undef off_t */ /* Define to `int' if does not define. */ -/* #undef pid_t */ +#define pid_t int /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 1cb02062de..e7f800ddf8 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2005-04-22 Angus Leeming + + * forkedcontr.h: + * forkedcall.h: remove pid_t definition to config.h. + 2005-04-21 Angus Leeming * forkedcontr.h: diff --git a/src/support/forkedcall.h b/src/support/forkedcall.h index 951b08d4cf..9b4cc892fd 100644 --- a/src/support/forkedcall.h +++ b/src/support/forkedcall.h @@ -31,11 +31,6 @@ #include -// pid_t isn't defined by the stdlibs that ship with MSVC. -#if defined (_WIN32) && defined(_MSC_VER) -typedef int pid_t; -#endif - namespace lyx { namespace support { diff --git a/src/support/forkedcontr.h b/src/support/forkedcontr.h index 2eb43990cc..e36064c2df 100644 --- a/src/support/forkedcontr.h +++ b/src/support/forkedcontr.h @@ -24,11 +24,6 @@ #include #include -// pid_t isn't defined by the stdlibs that ship with MSVC. -#if defined (_WIN32) && defined(_MSC_VER) -typedef int pid_t; -#endif - namespace lyx { namespace support {