aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alstring.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-03 13:46:09 -0700
committerChris Robinson <[email protected]>2014-04-03 13:46:09 -0700
commit569374da2c5f310d9309d477c24627133110dad0 (patch)
treecfac2a35e826273d71a13cda0daa1ceaae4ffbd4 /Alc/alstring.h
parent482fb37b688b94f5aff78a8dc34e78c1e2840058 (diff)
Properly compare al_strings
Diffstat (limited to 'Alc/alstring.h')
-rw-r--r--Alc/alstring.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/alstring.h b/Alc/alstring.h
index f9e16eb8..ab88c36f 100644
--- a/Alc/alstring.h
+++ b/Alc/alstring.h
@@ -26,11 +26,8 @@ inline const al_string_char_type *al_string_get_cstr(const_al_string str)
void al_string_clear(al_string *str);
-inline int al_string_cmp(const_al_string str1, const_al_string str2)
-{ return strcmp(al_string_get_cstr(str1), al_string_get_cstr(str2)); }
-
-inline int al_string_cmp_cstr(const_al_string str1, const al_string_char_type *str2)
-{ return strcmp(al_string_get_cstr(str1), str2); }
+int al_string_cmp(const_al_string str1, const_al_string str2);
+int al_string_cmp_cstr(const_al_string str1, const al_string_char_type *str2);
void al_string_copy(al_string *str, const_al_string from);
void al_string_copy_cstr(al_string *str, const al_string_char_type *from);