~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to src/google/protobuf/message.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
#include <google/protobuf/stubs/common.h>
125
125
 
126
 
#if defined(_WIN32) && defined(GetMessage)
127
 
// windows.h defines GetMessage() as a macro.  Let's re-define it as an inline
128
 
// function.  This is necessary because Reflection has a method called
129
 
// GetMessage() which we don't want overridden.  The inline function should be
130
 
// equivalent for C++ users.
131
 
inline BOOL GetMessage_Win32(
132
 
    LPMSG lpMsg, HWND hWnd,
133
 
    UINT wMsgFilterMin, UINT wMsgFilterMax) {
134
 
  return GetMessage(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
135
 
}
136
 
#undef GetMessage
137
 
inline BOOL GetMessage(
138
 
    LPMSG lpMsg, HWND hWnd,
139
 
    UINT wMsgFilterMin, UINT wMsgFilterMax) {
140
 
  return GetMessage_Win32(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
141
 
}
142
 
#endif
143
 
 
144
126
 
145
127
namespace google {
146
128
namespace protobuf {