#if defined(_WIN64) typedef __int64 ptrdiff_t; #elif defined(__ia64__) || defined(__x86_64__) typedef long int ptrdiff_t; #else typedef int ptrdiff_t; #endif #define NULL ((void *)0) typedef int wchar_t; typedef unsigned long size_t;