#ifndef _ARDUINO_COMPAT_H
#define _ARDUINO_COMPAT_H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
//#include <sys/types.h>
//#include <sys/stat.h>
#include <fcntl.h>

#include <ctype.h>

#include <string.h>

#include <iostream>
using namespace std;

typedef bool boolean;
typedef iostream Stream;

#endif

#ifndef _ARDUINO_COMPAT_H
#define _ARDUINO_COMPAT_H

#include <stdio.h>
#include <stdlib.h>
//#include <sys/types.h>
//#include <sys/stat.h>
#include <fcntl.h>

#include <ctype.h>

#include <string.h>

#include <iostream>
using namespace std;

typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
typedef bool boolean;
typedef iostream Stream;

#endif

--- 
+++ 
@@ -3,6 +3,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 //#include <sys/types.h>
 //#include <sys/stat.h>
 #include <fcntl.h>
@@ -14,9 +15,6 @@
 #include <iostream>
 using namespace std;
 
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned long uint32_t;
 typedef bool boolean;
 typedef iostream Stream;
 
Use stdint.h for unsigned integer typedefs

Fixes problem compiling regression tests on 64 bit OS.
