зеркало из https://github.com/mozilla/gecko-dev.git
Make this code build on Windows as well as Unix.
This commit is contained in:
Родитель
409d2b5a7a
Коммит
b35fce94e4
|
@ -36,13 +36,16 @@
|
|||
#include <string.h>
|
||||
|
||||
#if defined(WIN32)
|
||||
#undef __STDC__
|
||||
#include "fcntl.h"
|
||||
#include "io.h"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
#include "secutil.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
#include "nspr.h"
|
||||
#include "prtypes.h"
|
||||
|
@ -379,7 +382,7 @@ CK_RV ArrayTemplate(char *bp, char *attributes)
|
|||
char *cur = ap;
|
||||
ConstType type;
|
||||
|
||||
ap = index(ap,',');
|
||||
ap = strchr(ap,',');
|
||||
if (ap) {
|
||||
*ap++ = 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче