Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -72,7 +72,7 @@ def get_preprocessor(): · 71 unmodified lines | ||
| 72 | 72 | print("Warning: could not guess preprocessor, using env's CC") |
| 73 | 73 | cpp_cmd = os.environ.get('CC', 'cc').split() |
| 74 | 74 | cpp_cmd += ['-E'] |
| 75 | − | |
| 75 | + cpp_cmd += ['-x', 'c'] # force C language (emcc defaults to c++) | |
| 76 | 76 | return cpp_cmd |
| 77 | 77 | |
| 78 | 78 | def get_cpp_objects(header=header, usedouble=False): |