mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
w32: Remove support of Windows 95/98/Me.
* g10/photoid.c (VER_PLATFORM_WIN32_WINDOWS): Remove fallback definition. (get_default_photo_command): Remove use of "start /w" for Windows 95. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
23bb92b755
commit
5c7c6065f3
@ -27,9 +27,6 @@
|
|||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
# endif
|
# endif
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# ifndef VER_PLATFORM_WIN32_WINDOWS
|
|
||||||
# define VER_PLATFORM_WIN32_WINDOWS 1
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gpg.h"
|
#include "gpg.h"
|
||||||
@ -375,16 +372,7 @@ static const char *
|
|||||||
get_default_photo_command(void)
|
get_default_photo_command(void)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
OSVERSIONINFO osvi;
|
return "!ShellExecute 400 %i";
|
||||||
|
|
||||||
memset(&osvi,0,sizeof(osvi));
|
|
||||||
osvi.dwOSVersionInfoSize=sizeof(osvi);
|
|
||||||
GetVersionEx(&osvi);
|
|
||||||
|
|
||||||
if(osvi.dwPlatformId==VER_PLATFORM_WIN32_WINDOWS)
|
|
||||||
return "start /w %i";
|
|
||||||
else
|
|
||||||
return "!ShellExecute 400 %i";
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
/* OS X. This really needs more than just __APPLE__. */
|
/* OS X. This really needs more than just __APPLE__. */
|
||||||
return "open %I";
|
return "open %I";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user