I would like to atone for my sins. But later.

This fixes the windows build.  For some reason, MSVC believes that the
actor-compiled version of networkSender actually exists, but the
non-actor-compiled version doesn't exist.

This is a hackish workaround, as the largest reason to not include a
.g.h file is because it defines a POST_ACTOR_COMPILER define that messes
with actorcompiler.h's #defines.  We can just undefine that after
including the file.   ...but carefully.
This commit is contained in:
Alex Miller 2018-08-20 15:25:08 -07:00
parent 4f1a84116d
commit 4caacaaf4e
1 changed files with 8 additions and 4 deletions

View File

@ -26,7 +26,6 @@
#include "FlowTransport.h" // NetworkMessageReceiver Endpoint
#include "FailureMonitor.h"
struct FlowReceiver : private NetworkMessageReceiver {
// Common endpoint code for NetSAV<> and NetNotifiedQueue<>
@ -367,7 +366,12 @@ void load(Ar& ar, RequestStream<T>& value) {
value = RequestStream<T>(endpoint);
}
#endif
#include "genericactors.actor.h"
#if !defined(POST_ACTOR_COMPILER)
# define UNDEF_THE_ACTOR_COMPILER
#endif
#include "genericactors.actor.g.h"
#if defined(UNDEF_THE_ACTOR_COMPILER)
# undef POST_ACTOR_COMPILER
# undef UNDEF_THE_ACTOR_COMPILER
#endif