NSDN reference: http://msdn2.microsoft.com/en-us/library/b0084kay(VS.80).aspx
Patch by BugMaster %BugMaster A narod P ru%
Original thread:
date: Dec 27, 2007 3:18 AM
subject: [x264-devel] VS2008 compilation error (need of replacement __WIN32__ with _WIN32)
git-svn-id: svn://svn.videolan.org/x264/trunk@715
df754926-b1dd-0310-bc7b-
ec298dee348c
#if !defined(HAVE_PTHREAD)
return 1;
-#elif defined(WIN32)
+#elif defined(_WIN32)
return pthread_num_processors_np();
#elif defined(SYS_LINUX)
#if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX)
#define sqrtf sqrt
#endif
-#ifdef __WIN32__
+#ifdef _WIN32
#define rename(src,dst) (unlink(dst), rename(src,dst)) // POSIX says that rename() removes the destination, but win32 doesn't.
#ifndef strtok_r
#define strtok_r(str,delim,save) strtok(str,delim)