mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Bug fix and Windows compat change.
This commit is contained in:
parent
efcb4533be
commit
f9a76ce1ab
@ -36,6 +36,12 @@
|
||||
|
||||
#include "ucdata.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#define UC_DIRSEP '\\'
|
||||
#else
|
||||
#define UC_DIRSEP '/'
|
||||
#endif
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
* Miscellaneous types, data, and support functions.
|
||||
@ -83,7 +89,7 @@ _ucopenfile(char *paths, char *filename, char *mode)
|
||||
pp = path;
|
||||
while (*dp && *dp != ':')
|
||||
*pp++ = *dp++;
|
||||
*pp++ = '/';
|
||||
*pp++ = UC_DIRSEP;
|
||||
|
||||
fp = filename;
|
||||
while (*fp)
|
||||
@ -223,6 +229,9 @@ _ucprop_lookup(unsigned long code, unsigned long n)
|
||||
{
|
||||
long l, r, m;
|
||||
|
||||
if (_ucprop_size == 0)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* There is an extra node on the end of the offsets to allow this routine
|
||||
* to work right. If the index is 0xffff, then there are no nodes for the
|
||||
|
Loading…
Reference in New Issue
Block a user