mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
see https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
16 lines
593 B
Diff
16 lines
593 B
Diff
--- trunk/gcc/config/darwin-driver.c 2017/01/03 00:16:13 244009
|
|
+++ trunk/gcc/config/darwin-driver.c 2017/01/03 05:36:40 244010
|
|
@@ -299,10 +299,10 @@
|
|
if (vers_string != NULL)
|
|
{
|
|
char *asm_major = NULL;
|
|
- char *first_period = strchr(vers_string, '.');
|
|
+ const char *first_period = strchr(vers_string, '.');
|
|
if (first_period != NULL)
|
|
{
|
|
- char *second_period = strchr(first_period+1, '.');
|
|
+ const char *second_period = strchr(first_period+1, '.');
|
|
if (second_period != NULL)
|
|
asm_major = xstrndup (vers_string, second_period-vers_string);
|
|
else
|