return to old file mangling for windows build only
This commit is contained in:
parent
9e0a28d5f6
commit
10545a2f37
1 changed files with 25 additions and 2 deletions
|
@ -65,8 +65,31 @@ def check_header_exists(file):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def mangle(string):
|
def mangle(file):
|
||||||
return string
|
result = ""
|
||||||
|
skip = False
|
||||||
|
for line in open(file):
|
||||||
|
line = line.strip().replace("va_list", "void *") + "\n"
|
||||||
|
if skip:
|
||||||
|
if line.startswith("#endif"):
|
||||||
|
skip = False
|
||||||
|
continue
|
||||||
|
if line.startswith("#if defined(__cplusplus)"):
|
||||||
|
skip = True
|
||||||
|
continue
|
||||||
|
if line.startswith("#endif // RAYGUI_H"):
|
||||||
|
break
|
||||||
|
if line.startswith("#"):
|
||||||
|
continue
|
||||||
|
if line.startswith("RLAPI"):
|
||||||
|
line = line.replace('RLAPI ', '')
|
||||||
|
if line.startswith("RAYGUIDEF"):
|
||||||
|
line = line.replace('RAYGUIDEF ', '')
|
||||||
|
if line.startswith("PHYSACDEF"):
|
||||||
|
line = line.replace('PHYSACDEF ', '')
|
||||||
|
result += line
|
||||||
|
# print(line)
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
def build_unix():
|
def build_unix():
|
||||||
|
|
Reference in a new issue