This is the mail archive of the mailing list for the pthreas-win32 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]


Unfortunately, it is not that simple...

First, pthread.h includes windows.h and winsock.h for some defines.

Second, the Windows headers do not recognize _POSIX_SOURCE, but they do
recognize _POSIX_ , but that just fixes some things like file IO and it does not
block non POSIX functions.

You can either closely look at the source code line by line looking for non
POSIX functions, or take your source code over to a Linux, Solaris, or other
POSIX system and 'try' to compile it :) That is how I am porting the GLTrace DLL
from Windows to Linux/Solaris.

Max TenEyck Woodbury wrote:
> I have (a part of) an application that I have working under
> WinXX that I want to move to several other environments. I figured
> that making it POSIX compliant would be the first step in moving
> it, so I stripped the windows headers, inserted the corresponding
> POSIX headers and defined _POSIX_SOURCE and included the PT32 include
> directory in the header search path. I expected the compiler
> to point out all the function calls and definitions that I needed
> to change.
> No errors. And there should be loads of 'em!
> Help?

Phil Frisbie, Jr.
Lead Developer, Hawk Software

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]