1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Changed a lot of __MINGW32__ to _WIN32. This should help a bit in

building with native Windows compilers.  On request by Brian Gladman.
This commit is contained in:
Werner Koch 2003-07-30 16:04:46 +00:00
parent ee923fb897
commit da4bf59349
42 changed files with 415 additions and 393 deletions

View file

@ -1,3 +1,8 @@
2003-07-30 Werner Koch <wk@gnupg.org>
* idea-stub.c, random.c: Replaced some __MINGW32__ by _WIN32 and
added some _WIN32.
2003-05-21 David Shaw <dshaw@jabberwocky.com>
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c,

View file

@ -1,5 +1,5 @@
/* idea-stub.c - Dummy module for the deprecated IDEA cipher.
* Copyright (C) 2002 Free Software Foundation, Inc.
* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -41,7 +41,7 @@
#ifdef HAVE_DL_DLOPEN
#include <dlfcn.h>
#endif
#ifdef __MINGW32__
#ifdef _WIN32
#include <windows.h>
#endif
#include "util.h"
@ -52,7 +52,7 @@
#endif
#ifdef __MINGW32__
#ifdef _WIN32
#define HAVE_DL_DLOPEN
#define USE_DYNAMIC_LINKING
@ -101,7 +101,7 @@ dlsym ( void *handle, const char *name )
}
return h;
}
#endif /*__MINGW32__*/
#endif /*_WIN32*/
/* We do only support dlopen and the Windows emulation of it. */
#ifndef HAVE_DL_DLOPEN
@ -117,7 +117,7 @@ load_module (const char *name)
void *handle;
void *sym;
#ifndef __MINGW32__
#ifndef _WIN32
/* Make sure we are not setuid. */
if (getuid() != geteuid())
log_bug("trying to load an extension while still setuid\n");

View file

@ -1,5 +1,6 @@
/* random.c - random number generator
* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
* Copyright (C) 1998, 1999, 2000, 2001, 2002,
* 2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -33,7 +34,9 @@
#include <errno.h>
#include <string.h>
#include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@ -50,7 +53,7 @@
#ifdef HAVE_GETRUSAGE
#include <sys/resource.h>
#endif
#ifdef __MINGW32__
#ifdef _WIN32
#include <process.h>
#endif
#include "util.h"