Make libutil build for WinCE.
git-svn-id: svn://10.0.0.236/trunk@118059 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
baa6dae990
commit
62cdc6bce9
@ -59,8 +59,6 @@ EXPORTS = \
|
||||
watcomfx.h \
|
||||
$(NULL)
|
||||
|
||||
MODULE = security
|
||||
|
||||
CSRCS = \
|
||||
secdig.c \
|
||||
derdec.c \
|
||||
@ -86,6 +84,9 @@ CSRCS = \
|
||||
utf8.c \
|
||||
$(NULL)
|
||||
|
||||
REQUIRES = security dbm
|
||||
MODULE = security
|
||||
|
||||
# don't duplicate module name in REQUIRES
|
||||
REQUIRES = dbm
|
||||
|
||||
LIBRARY_NAME = secutil
|
||||
|
||||
@ -38,10 +38,14 @@
|
||||
* secder.h - public data structures and prototypes for the DER encoding and
|
||||
* decoding utilities library
|
||||
*
|
||||
* $Id: secder.h,v 1.1 2000-03-31 19:39:29 relyea%netscape.com Exp $
|
||||
* $Id: secder.h,v 1.2 2002-04-04 00:11:48 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#include "plarena.h"
|
||||
#include "prlong.h"
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
*
|
||||
* NOTE - These are not public interfaces
|
||||
*
|
||||
* $Id: secport.c,v 1.12 2002-03-15 05:54:21 wtc%netscape.com Exp $
|
||||
* $Id: secport.c,v 1.13 2002-04-04 00:11:48 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "seccomon.h"
|
||||
@ -258,6 +258,12 @@ PORT_FreeArena(PLArenaPool *arena, PRBool zero)
|
||||
PZ_Lock(lock);
|
||||
}
|
||||
if (!pvd) {
|
||||
/* Each of NSPR's DLLs has a function libVersionPoint().
|
||||
** We could do a lot of extra work to be sure we're calling the
|
||||
** one in the DLL that holds PR_FreeArenaPool, but instead we
|
||||
** rely on the fact that ALL NSPR DLLs in the same directory
|
||||
** must be from the same release, and we call which ever one we get.
|
||||
*/
|
||||
/* no need for thread protection here */
|
||||
pvd = libVersionPoint();
|
||||
if ((pvd->vMajor > 4) ||
|
||||
@ -529,7 +535,7 @@ PORT_UCS2_ASCIIConversion(PRBool toUnicode, unsigned char *inBuf,
|
||||
int
|
||||
NSS_PutEnv(const char * envVarName, const char * envValue)
|
||||
{
|
||||
#if defined(XP_MAC)
|
||||
#if defined(XP_MAC) || defined(_WIN32_WCE)
|
||||
return SECFailure;
|
||||
#else
|
||||
SECStatus result = SECSuccess;
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
*
|
||||
* NOTE - These are not public interfaces
|
||||
*
|
||||
* $Id: secport.h,v 1.4 2002-03-15 05:54:22 wtc%netscape.com Exp $
|
||||
* $Id: secport.h,v 1.5 2002-04-04 00:11:48 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SECPORT_H_
|
||||
@ -85,7 +85,10 @@
|
||||
#include "watcomfx.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_MAC
|
||||
#if defined(_WIN32_WCE)
|
||||
#include <windef.h>
|
||||
#include <types.h>
|
||||
#elif defined( XP_MAC )
|
||||
#include <types.h>
|
||||
#include <time.h> /* for time_t below */
|
||||
#else
|
||||
@ -100,7 +103,11 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#if defined(_WIN32_WCE)
|
||||
#include <stdlib.h> /* WinCE puts some stddef symbols here. */
|
||||
#else
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include "prtypes.h"
|
||||
#include "prlog.h" /* for PR_ASSERT */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user