Skip to content

Commit

Permalink
Investigate windows build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Jul 19, 2022
1 parent 3831cd3 commit a1cf1ff
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
8 changes: 6 additions & 2 deletions examples/grpc/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
#include <string>
#include "tracer_common.h"

#ifdef DELETE
#ifdef _WIN32
# ifdef DELETE
// winnt.h defines DELETE
// Causes a build error with FaasDocumentOperationValues::DELETE
# undef DELETE
# pragma message(__FILE__ ": removing define on DELETE")
# undef DELETE
# endif
#endif

#include "opentelemetry/trace/semantic_conventions.h"
Expand Down
8 changes: 6 additions & 2 deletions examples/grpc/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
#include <string>
#include <thread>

#ifdef DELETE
#ifdef _WIN32
# ifdef DELETE
// winnt.h defines DELETE
// Causes a build error with FaasDocumentOperationValues::DELETE
# undef DELETE
# pragma message(__FILE__ ": removing define on DELETE")
# undef DELETE
# endif
#endif

#include "opentelemetry/trace/semantic_conventions.h"
Expand Down
8 changes: 6 additions & 2 deletions examples/http/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
#include "opentelemetry/ext/http/common/url_parser.h"
#include "tracer_common.h"

#ifdef DELETE
#ifdef _WIN32
# ifdef DELETE
// winnt.h defines DELETE
// Causes a build error with FaasDocumentOperationValues::DELETE
# undef DELETE
# pragma message(__FILE__ ": removing define on DELETE")
# undef DELETE
# endif
#endif

#include "opentelemetry/trace/semantic_conventions.h"
Expand Down
8 changes: 6 additions & 2 deletions examples/http/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
#include <iostream>
#include <thread>

#ifdef DELETE
#ifdef _WIN32
# ifdef DELETE
// winnt.h defines DELETE
// Causes a build error with FaasDocumentOperationValues::DELETE
# undef DELETE
# pragma message(__FILE__ ": removing define on DELETE")
# undef DELETE
# endif
#endif

#include "opentelemetry/trace/semantic_conventions.h"
Expand Down

0 comments on commit a1cf1ff

Please sign in to comment.