Mac: fix compile warnings caused by upgrade to C++11

This commit is contained in:
Charlie Fenton 2021-03-31 03:44:19 -07:00
parent 7710c0fe6f
commit 661983a5d6
4 changed files with 9 additions and 4 deletions

View File

@ -94,7 +94,7 @@ int dhrystone(
double benchtime;
double Dhrystones_Per_Second;
register unsigned long Run_Index;
REG unsigned long Run_Index;
Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));

View File

@ -1,5 +1,9 @@
#ifdef __APPLE__
#define REG
#else
#define REG register
#endif
typedef enum {Ident_1, Ident_2, Ident_3, Ident_4, Ident_5} Enumeration;

View File

@ -63,9 +63,9 @@ void CSimplePanelBase::MakeBGBitMap() {
wxBitmap whiteBmp;
wxImage bgImage;
wxImage whiteImage;
register unsigned char *bgImagePixels;
register unsigned char *whitePixels;
register int i, j, k;
unsigned char *bgImagePixels;
unsigned char *whitePixels;
int i, j, k;
CSimpleGUIPanel* backgroundPanel = (CSimpleGUIPanel*)GetParent();
wxPen bgPen(*wxWHITE, 1, wxTRANSPARENT);
wxBrush bgBrush(*wxWHITE);

View File

@ -27,6 +27,7 @@
// The declarations below must be kept in sync with
// the corresponding ones in Mac_Saver_ModuleView.h
#ifdef _DEBUG
#undef _T
#define _T(x) x
#endif