Changeset - 9c7d577b0e3a
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-03-20 22:45:13
hanzz.k@gmail.com
define getpid on windows
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
plugin/cpp/networkplugin.cpp
Show inline comments
 
@@ -19,24 +19,26 @@
 
 */
 

	
 
#include "transport/networkplugin.h"
 
#include "log4cxx/logger.h"
 
#include "log4cxx/basicconfigurator.h"
 
#include "transport/memoryusage.h"
 

	
 
#ifndef WIN32
 
#include <arpa/inet.h>
 
#else 
 
#include <winsock2.h>
 
#include <stdint.h>
 
#include <process.h>
 
#define getpid _getpid
 
#endif
 

	
 
using namespace log4cxx;
 

	
 
static LoggerPtr logger = Logger::getLogger("NetworkPlugin");
 

	
 
namespace Transport {
 

	
 
#define WRAP(MESSAGE, TYPE) 	pbnetwork::WrapperMessage wrap; \
 
	wrap.set_type(TYPE); \
 
	wrap.set_payload(MESSAGE); \
 
	wrap.SerializeToString(&MESSAGE);
0 comments (0 inline, 0 general)