*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
#endif
#include <sys/types.h>
-#ifdef WIN32
+#ifdef _WIN32
# include <windows.h>
#endif
pid_t getpid (void)
{
-#ifdef WIN32
+#if defined (_WIN32)
return (pid_t) GetCurrentProcessId ();
+#elif defined (__native_client__)
+ return 1;
#else
# error Unimplemented!
#endif