logging: add a FileHandlerFactory class
[folly.git] / folly / portability / SysTypes.h
index 0d081fe59cec01000ed0dce791ef879c56987049..35955137676437bafff059dc2f92ebc7a4c130bd 100755 (executable)
 #include <sys/types.h>
 
 #ifdef _WIN32
-#include <basetsd.h>
+#include <basetsd.h> // @manual
 
 #define HAVE_MODE_T 1
 
-// This is actually defined in our pthread implementation on
-// Windows, but we don't want to include all of that just for this.
-using pid_t = void*;
+// This is a massive pain to have be an `int` due to the pthread implementation
+// we support, but it's far more compatible with the rest of the windows world
+// as an `int` than it would be as a `void*`
+using pid_t = int;
 // This isn't actually supposed to be defined here, but it's the most
 // appropriate place without defining a portability header for stdint.h
 // with just this single typedef.