Remove some symbol exports and cleanup newline warnings (#433)

* build: Ensure darwin generated sources end with a new line

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>

* build: Use .private_extern where missing to prevent exporting symbols that are not API

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
This commit is contained in:
Jeremy Huddleston Sequoia
2018-05-05 03:44:33 -07:00
committed by Anthony Green
parent d3c54cf3a2
commit a5a0f3cf36
5 changed files with 29 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ class simulator_platform(Platform):
version_min = '-miphoneos-version-min=7.0'
prefix = "#ifdef __i386__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
src_dir = 'x86'
src_files = ['sysv.S', 'ffi.c', 'internal.h']
@@ -30,7 +30,7 @@ class simulator64_platform(Platform):
version_min = '-miphoneos-version-min=7.0'
prefix = "#ifdef __x86_64__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
src_dir = 'x86'
src_files = ['unix64.S', 'ffi64.c', 'ffiw64.c', 'win64.S', 'internal64.h', 'asmnames.h']
@@ -43,7 +43,7 @@ class device_platform(Platform):
version_min = '-miphoneos-version-min=7.0'
prefix = "#ifdef __arm__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
src_dir = 'arm'
src_files = ['sysv.S', 'ffi.c', 'internal.h']
@@ -56,7 +56,7 @@ class device64_platform(Platform):
version_min = '-miphoneos-version-min=7.0'
prefix = "#ifdef __arm64__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
src_dir = 'aarch64'
src_files = ['sysv.S', 'ffi.c', 'internal.h']
@@ -71,7 +71,7 @@ class desktop32_platform(Platform):
src_files = ['sysv.S', 'ffi.c', 'internal.h']
prefix = "#ifdef __i386__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
class desktop64_platform(Platform):
@@ -82,7 +82,7 @@ class desktop64_platform(Platform):
version_min = '-mmacosx-version-min=10.6'
prefix = "#ifdef __x86_64__\n\n"
suffix = "\n\n#endif"
suffix = "\n\n#endif\n"
src_dir = 'x86'
src_files = ['unix64.S', 'ffi64.c', 'ffiw64.c', 'win64.S', 'internal64.h', 'asmnames.h']