From ea698ef926fc08988272359e912cc269119c0618 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Thu, 30 May 2013 22:43:40 -0600 Subject: [PATCH] Use arrays instead of dicts. Fixes build on OpenBSD. --- gambatte_sdl/SConstruct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gambatte_sdl/SConstruct b/gambatte_sdl/SConstruct index d8afacf6..e1312f24 100644 --- a/gambatte_sdl/SConstruct +++ b/gambatte_sdl/SConstruct @@ -9,7 +9,7 @@ vars.Add('CXX') env = Environment(CPPPATH = ['src', '../libgambatte/include', '../common'], CFLAGS = cflags, CXXFLAGS = cxxflags, - CPPDEFINES = { 'HAVE_STDINT_H': None }, + CPPDEFINES = [ 'HAVE_STDINT_H', None ], variables = vars) env.ParseConfig('sdl-config --cflags --libs') @@ -44,11 +44,11 @@ conf = env.Configure() conf.CheckLib('z') conf.Finish() -version_str_def = {} +version_str_def = [] if Dir('../.git').exists(): try: git_revno = subprocess.check_output("git rev-list HEAD --count", shell=True).strip() - version_str_def = { 'GAMBATTE_SDL_VERSION_STR': r'\"r' + git_revno + r'\"' } + version_str_def = [ 'GAMBATTE_SDL_VERSION_STR', r'\"r' + git_revno + r'\"' ] except subprocess.CalledProcessError: pass