mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Alexandre Julliard <julliard@winehq.org>
- Removed the broken mmap64 configure check, and moved the _FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that need the define include it. svn path=/trunk/; revision=17661
This commit is contained in:
parent
87507a864e
commit
5d793513d1
6 changed files with 319 additions and 297 deletions
|
@ -775,7 +775,7 @@
|
|||
#define HAVE__SPAWNVP 1
|
||||
|
||||
/* Define to 1 if you have the `_stricmp' function. */
|
||||
#define HAVE__STRICMP 1
|
||||
/* #undef HAVE__STRICMP 1 */
|
||||
|
||||
/* Define to 1 if you have the `_strnicmp' function. */
|
||||
#define HAVE__STRNICMP 1
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
<define name="__REACTOS__" />
|
||||
<define name="__USE_W32API" />
|
||||
<file>debug.c</file>
|
||||
<file>string.c</file>
|
||||
</module>
|
||||
|
|
19
reactos/lib/libwine/string.c
Normal file
19
reactos/lib/libwine/string.c
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <ctype.h>
|
||||
#include "wine/config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
# ifndef HAVE__STRICMP
|
||||
int strcasecmp( const char *str1, const char *str2 )
|
||||
{
|
||||
const unsigned char *ustr1 = (const unsigned char *)str1;
|
||||
const unsigned char *ustr2 = (const unsigned char *)str2;
|
||||
|
||||
while (*ustr1 && toupper(*ustr1) == toupper(*ustr2)) {
|
||||
ustr1++;
|
||||
ustr2++;
|
||||
}
|
||||
return toupper(*ustr1) - toupper(*ustr2);
|
||||
}
|
||||
#endif
|
||||
#endif
|
|
@ -121,6 +121,7 @@
|
|||
* - Added extra comment about grammar
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -202,7 +202,7 @@
|
|||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 240 "./parser.y"
|
||||
#line 241 "./parser.y"
|
||||
typedef union YYSTYPE {
|
||||
string_t *str;
|
||||
int num;
|
||||
|
|
Loading…
Reference in a new issue