diff options
author | Oliver Schneider <oliver@assarbad.net> | 2016-01-11 21:10:44 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2016-01-11 21:10:44 +0300 |
commit | 5069b822e070d36b0f67438822ddfdc073713f34 (patch) | |
tree | 5907c4b7f550c7bad633b86d233eb8c4134dee2c /common | |
parent | 2937c722e57e13f8ef23534ba385247d63a61b2e (diff) |
Getting rid of platform.h and making sure VS versions newer than VS2008 will use the Windows 7 features by default
Diffstat (limited to 'common')
-rw-r--r-- | common/platform.cpp | 41 | ||||
-rw-r--r-- | common/platform.h | 31 |
2 files changed, 0 insertions, 72 deletions
diff --git a/common/platform.cpp b/common/platform.cpp deleted file mode 100644 index 03b61cd..0000000 --- a/common/platform.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// platform.cpp - Implementation of PlatformIsWindows9x() -// -// WinDirStat - Directory Statistics -// Copyright (C) 2003-2005 Bernhard Seifert -// Copyright (C) 2004-2006, 2008 Oliver Schneider (assarbad.net) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// Author(s): - bseifert -> http://windirstat.info/contact/bernhard/ -// - assarbad -> http://windirstat.info/contact/oliver/ -// - -#include "stdafx.h" -#include "platform.h" - -bool PlatformIsWindows9x() -{ - OSVERSIONINFO osvi; - ZeroMemory(&osvi, sizeof(osvi)); - osvi.dwOSVersionInfoSize = sizeof(osvi); - - if(!GetVersionEx(&osvi)) - { - VTRACE(_T("GetVersionEx() failed.")); - return false; - } - - return (VER_PLATFORM_WIN32_WINDOWS == osvi.dwPlatformId); -} diff --git a/common/platform.h b/common/platform.h deleted file mode 100644 index 43c7e5f..0000000 --- a/common/platform.h +++ /dev/null @@ -1,31 +0,0 @@ -// platform.h - Declaration of PlatformIsWindows9x() -// -// WinDirStat - Directory Statistics -// Copyright (C) 2003-2005 Bernhard Seifert -// Copyright (C) 2004-2006, 2008 Oliver Schneider (assarbad.net) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// Author(s): - bseifert -> http://windirstat.info/contact/bernhard/ -// - assarbad -> http://windirstat.info/contact/oliver/ -// - -#ifndef __WDS_PLATFORM_H__ -#define __WDS_PLATFORM_H__ -#pragma once - -bool PlatformIsWindows9x(); - -#endif // __WDS_PLATFORM_H__ |