Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created July 8, 2014 19:55
Show Gist options
  • Save qpfiffer/74791212d16f54115692 to your computer and use it in GitHub Desktop.
Save qpfiffer/74791212d16f54115692 to your computer and use it in GitHub Desktop.
// WEBRTC stuff:
#include "talk/base/logging.h"
#include "talk/base/stringutils.h"
#include "talk/base/common.h"
#include "talk/base/physicalsocketserver.h"
#include "talk/base/ssladapter.h"
#include "talk/base/thread.h"
// Have to undef some stuff here because the compiler yells about it. Postgres
// has it's own versions.
#pragma push_macro("closesocket")
#undef closesocket
#pragma push_macro("LOG")
#undef LOG
extern "C" {
#include "postgres.h"
#include "postmaster/bgworker.h"
#include "storage/ipc.h"
#include "storage/latch.h"
#include "storage/proc.h"
#include "fmgr.h"
PG_MODULE_MAGIC;
}
#pragma pop_macro("LOG")
#pragma pop_macrot("closesocket")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment