Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 830801 - Part 3. Remove NOMINMAX define from cpp source. r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
makotokato committed Aug 3, 2015
1 parent 3f6cf20 commit a2b8d63
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions config/gcc-stl-wrapper.template.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
// Silence "warning: #include_next is a GCC extension"
#pragma GCC system_header

#ifdef _WIN32
// Suppress windef.h min and max macros - they make std::min/max not compile.
#define NOMINMAX 1
#endif

// mozalloc.h wants <new>; break the cycle by always explicitly
// including <new> here. NB: this is a tad sneaky. Sez the gcc docs:
//
Expand Down
3 changes: 0 additions & 3 deletions config/msvc-stl-wrapper.template.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# error "STL code can only be used with -fno-exceptions"
#endif

// Suppress windef.h min and max macros - they make std::min/max not compile.
#define NOMINMAX 1

// Code built with !_HAS_EXCEPTIONS calls std::_Throw(), but the win2k
// CRT doesn't export std::_Throw(). So we define it.
#ifndef mozilla_Throw_h
Expand Down
2 changes: 0 additions & 2 deletions embedding/components/printingui/win/nsPrintDialogUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ WIN_LIBS= \
---------------------------------------------------------------------- */

#define NOMINMAX 1

#include "plstr.h"
#include <windows.h>
#include <tchar.h>
Expand Down
3 changes: 0 additions & 3 deletions memory/replace/logalloc/replay/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include "mozmemory_wrap.h"

#ifdef _WIN32
/* windef.h, which windows.h includes, #defines min and max, which
* breaks std::min. Defining NOMINMAX prevents those #defines. */
#define NOMINMAX
#include <windows.h>
#include <io.h>
typedef int ssize_t;
Expand Down
2 changes: 0 additions & 2 deletions toolkit/crashreporter/client/crashreporter_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#undef WIN32_LEAN_AND_MEAN
#endif

#define NOMINMAX

#include "crashreporter.h"

#include <windows.h>
Expand Down

0 comments on commit a2b8d63

Please sign in to comment.