"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/safewindows.h" between
xapian-omega-1.4.18.tar.xz and xapian-omega-1.4.19.tar.xz

About: Xapian Omega is an application built on Xapian, consisting of indexers and a CGI search frontend.

safewindows.h  (xapian-omega-1.4.18.tar.xz):safewindows.h  (xapian-omega-1.4.19.tar.xz)
/** @file safewindows.h /** @file
* @brief #include <windows.h> without all the bloat and damage. * @brief #include <windows.h> without all the bloat and damage.
*/ */
/* Copyright (C) 2005,2007,2013 Olly Betts /* Copyright (C) 2005,2007,2013,2020 Olly Betts
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the * published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version. * License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 41 skipping to change at line 41
# define NOMINMAX # define NOMINMAX
#endif #endif
// Prevent windows.h from including lots of obscure win32 api headers // Prevent windows.h from including lots of obscure win32 api headers
// which we don't care about and will just slow down compilation and // which we don't care about and will just slow down compilation and
// increase the risk of symbol collisions. // increase the risk of symbol collisions.
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#define NOGDI #define NOGDI
#include <windows.h> #include <windows.h>
// The mingw.org headers don't reach <winerror.h> from <windows.h> (verified
// with w32api 5.4.1). MSVC does, so we treat this as a flaw to workaround and
// include <winerror.h> if we detect it hasn't been implicitly included.
#ifndef ERROR_PIPE_CONNECTED
# include <winerror.h>
#endif
#endif // XAPIAN_INCLUDED_SAFEWINDOWS_H #endif // XAPIAN_INCLUDED_SAFEWINDOWS_H
 End of changes. 3 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)