Skip to content

Commit 4af6cb0

Browse files
committed
c++98 compatibility fix
1 parent a3c3352 commit 4af6cb0

File tree

1 file changed

+9
-0
lines changed
  • atari_py/ale_interface/src/emucore

1 file changed

+9
-0
lines changed

atari_py/ale_interface/src/emucore/TIA.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ using namespace std;
3434

3535
#define HBLANK 68
3636

37+
// c++98 compatibility
38+
#if !defined(__intptr_t_defined) && !defined(_UINTPTR_T_DEFINED) && !defined(uintptr_t)
39+
# if __WORDSIZE == 64
40+
typedef unsigned long int uintptr_t;
41+
# else
42+
typedef unsigned int uintptr_t;
43+
# endif
44+
#endif
45+
3746
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3847
TIA::TIA(const Console& console, Settings& settings)
3948
: myConsole(console),

0 commit comments

Comments
 (0)