mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Make target from string case dependent.
This commit is contained in:
committed by
Christoffer Lerno
parent
c70d6716da
commit
fd82f9685f
6
.gitignore
vendored
6
.gitignore
vendored
@@ -52,7 +52,6 @@ Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
/build/
|
||||
/cmake-build-debug/
|
||||
.idea/
|
||||
/resources/grammar.tab.c
|
||||
/resources/grammar.vcg
|
||||
@@ -64,4 +63,7 @@ dkms.conf
|
||||
#visual studio files
|
||||
.vs/
|
||||
.vscode/
|
||||
out/
|
||||
out/
|
||||
|
||||
/cmake-build-debug/
|
||||
/cmake-build-release/
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
#include <assert.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
@@ -675,7 +672,7 @@ ArchOsTarget arch_os_target_from_string(const char *target)
|
||||
{
|
||||
for (unsigned i = 1; i <= ARCH_OS_TARGET_LAST; i++)
|
||||
{
|
||||
if (strcasecmp(arch_os_target[i], target) == 0)
|
||||
if (strcmp(arch_os_target[i], target) == 0)
|
||||
{
|
||||
return (ArchOsTarget)i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user