diff --git a/steps/tcc-0.9.26/simple-patches/array_sizeof.after b/steps/tcc-0.9.26/simple-patches/array_sizeof.after new file mode 100644 index 00000000..8f8b6b5e --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/array_sizeof.after @@ -0,0 +1,5 @@ +#ifdef PNUT_CC + char buf1[1024]; +#else + char buf1[sizeof file->filename]; +#endif diff --git a/steps/tcc-0.9.26/simple-patches/array_sizeof.before b/steps/tcc-0.9.26/simple-patches/array_sizeof.before new file mode 100644 index 00000000..96b3c754 --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/array_sizeof.before @@ -0,0 +1 @@ + char buf1[sizeof file->filename]; diff --git a/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.after b/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.after new file mode 100644 index 00000000..ffb647b6 --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.after @@ -0,0 +1,3 @@ +#ifdef PNUT_CC + s1->error_set_jmp_enabled = 0; +#endif diff --git a/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.before b/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.before new file mode 100644 index 00000000..10aabde3 --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/error_set_jmp_enabled.before @@ -0,0 +1 @@ + s1->error_set_jmp_enabled = 1; diff --git a/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.after b/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.after new file mode 100644 index 00000000..b4f0920f --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.after @@ -0,0 +1,5 @@ +#ifdef PNUT_CC + a = 0; b = 9; c = 26; +#else + sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c); +#endif diff --git a/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.before b/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.before new file mode 100644 index 00000000..5a97cd23 --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.before @@ -0,0 +1 @@ + sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c); diff --git a/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.after b/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.after new file mode 100644 index 00000000..bf9b17ad --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.after @@ -0,0 +1 @@ +#if defined _WIN32 == defined TCC_TARGET_PE && !defined PNUT_CC diff --git a/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.before b/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.before new file mode 100644 index 00000000..aca9a026 --- /dev/null +++ b/steps/tcc-0.9.26/simple-patches/undefine_TCC_IS_NATIVE.before @@ -0,0 +1 @@ +#if defined _WIN32 == defined TCC_TARGET_PE