Merge pull request #30 from rkitover/linux_fixes

Fix namespace issue, missing parens, missing func
This commit is contained in:
Zach Bacon 2016-10-24 16:26:07 -04:00 committed by GitHub
commit 6899b97dbc
5 changed files with 5 additions and 12 deletions

View File

@ -62,7 +62,7 @@ ENDIF( NOT VERSION )
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
ADD_DEFINITIONS(-DDEBUG)
ELSE()
ADD_DEFINITIONS(-NDEBUG)
ADD_DEFINITIONS(-DNDEBUG)
ENDIF()
# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m

View File

@ -47,7 +47,7 @@ SET(SRC_GTK
soundconfig.cpp
screenarea.cpp
screenarea-cairo.cpp
#screenarea-opengl.cpp
screenarea-opengl.cpp
tools.cpp
window.cpp
../sdl/inputSDL.cpp

View File

@ -49,7 +49,7 @@ ScreenArea::ScreenArea(int _iWidth, int _iHeight, int _iScale)
pixbuf->fill(0);
#if !GTK_CHECK_VERSION(3, 0, 0)
m_poEmptyCursor = new Gdk::Cursor(get_display, pixbuf, 0, 0);
m_poEmptyCursor = new Gdk::Cursor(get_display(), pixbuf, 0, 0);
#else
m_poEmptyCursor = Gdk::Cursor::create(get_display(), pixbuf, 0, 0);
#endif

View File

@ -85,14 +85,10 @@ enum yytokentype {
/* Copy the first part of user declarations. */
#line 1 "expr.ypp"
namespace std {
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
}
using namespace std;
#include <cstdlib>
#include "../System.h"
#include "../gba/elf.h"

View File

@ -1,12 +1,9 @@
%{
namespace std {
#include <stdio.h>
#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
}
#include "../System.h"
#include "../gba/elf.h"
#include "exprNode.h"