aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2015-10-30 23:17:48 +0200
committerEli Zaretskii2015-10-30 23:17:48 +0200
commite11aaee266da52937a3a031cb108fe13f68958c3 (patch)
treead09f7a8a7c0a65d6d8af8005c6189a94a621fab /src
parent9c36df736b89490d14a5b5109c9c00209a0c25f5 (diff)
downloademacs-e11aaee266da52937a3a031cb108fe13f68958c3.tar.gz
emacs-e11aaee266da52937a3a031cb108fe13f68958c3.zip
Fix a typo in a macro name
* src/w32proc.c (_NLSCMPERROR): Fix a typo in the name of this macro. (w32_compare_strings): Adjust for the correction.
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 8a1e17ec38f..a4e14965c87 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -3504,8 +3504,8 @@ get_lcid (const char *locale_name)
3504 return found_lcid; 3504 return found_lcid;
3505} 3505}
3506 3506
3507#ifndef _NSLCMPERROR 3507#ifndef _NLSCMPERROR
3508# define _NSLCMPERROR INT_MAX 3508# define _NLSCMPERROR INT_MAX
3509#endif 3509#endif
3510#ifndef LINGUISTIC_IGNORECASE 3510#ifndef LINGUISTIC_IGNORECASE
3511# define LINGUISTIC_IGNORECASE 0x00000010 3511# define LINGUISTIC_IGNORECASE 0x00000010
@@ -3546,7 +3546,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
3546 errno = EINVAL; 3546 errno = EINVAL;
3547 /* This return value is compatible with wcscoll and 3547 /* This return value is compatible with wcscoll and
3548 other MS CRT functions. */ 3548 other MS CRT functions. */
3549 return _NSLCMPERROR; 3549 return _NLSCMPERROR;
3550 } 3550 }
3551 } 3551 }
3552 else 3552 else
@@ -3565,7 +3565,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
3565 else 3565 else
3566 { 3566 {
3567 errno = EINVAL; 3567 errno = EINVAL;
3568 return _NSLCMPERROR; 3568 return _NLSCMPERROR;
3569 } 3569 }
3570 3570
3571 needed = pMultiByteToWideChar (CP_UTF8, MB_ERR_INVALID_CHARS, s2, -1, NULL, 0); 3571 needed = pMultiByteToWideChar (CP_UTF8, MB_ERR_INVALID_CHARS, s2, -1, NULL, 0);
@@ -3579,7 +3579,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
3579 { 3579 {
3580 SAFE_FREE (); 3580 SAFE_FREE ();
3581 errno = EINVAL; 3581 errno = EINVAL;
3582 return _NSLCMPERROR; 3582 return _NLSCMPERROR;
3583 } 3583 }
3584 3584
3585 if (locname) 3585 if (locname)
@@ -3616,7 +3616,7 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
3616 if (!val) 3616 if (!val)
3617 { 3617 {
3618 errno = EINVAL; 3618 errno = EINVAL;
3619 return _NSLCMPERROR; 3619 return _NLSCMPERROR;
3620 } 3620 }
3621 return val - 2; 3621 return val - 2;
3622} 3622}