Make target from string case dependent.

This commit is contained in:
Christoffer Lerno
2022-02-11 11:12:03 +01:00
committed by Christoffer Lerno
parent c70d6716da
commit fd82f9685f
2 changed files with 5 additions and 6 deletions

6
.gitignore vendored
View File

@@ -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/

View File

@@ -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;
}