summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-26 11:59:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-26 11:59:25 -0300
commitfb9d1498bf96f89773dff3f0e5ab6051b84f59bc (patch)
treed27f3b9d521de8bb013bfb716dee03ed1cc2c863
parentf31a6d26f15ef6fe5aac783dc188534074517b1e (diff)
Cleaner way to enable ptrcall
-rw-r--r--SConstruct5
-rw-r--r--core/typedefs.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 80d39403ba..691536c956 100644
--- a/SConstruct
+++ b/SConstruct
@@ -77,7 +77,7 @@ env_base.android_manifest_chunk=""
env_base.android_permission_chunk=""
env_base.android_appattributes_chunk=""
env_base.disabled_modules=[]
-
+env_base.use_ptrcall=False
env_base.split_drivers=False
@@ -313,6 +313,9 @@ if selected_platform in platform_list:
sys.modules.pop('config')
+ if (env.use_ptrcall):
+ env.Append(CPPFLAGS=['-DPTRCALL_ENABLED']);
+
if (env['musepack']=='yes'):
env.Append(CPPFLAGS=['-DMUSEPACK_ENABLED']);
diff --git a/core/typedefs.h b/core/typedefs.h
index 6f9bb58958..30a75e66da 100644
--- a/core/typedefs.h
+++ b/core/typedefs.h
@@ -296,5 +296,6 @@ struct _GlobalLock {
#define __STR(m_index) __STRX(m_index)
+
#endif /* typedefs.h */