Explorar o código

Ensure that no #includes are inside of a namespace.

David Garcia Quintas %!s(int64=9) %!d(string=hai) anos
pai
achega
7d757ca29d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      test/cpp/qps/limit_cores.cc

+ 4 - 2
test/cpp/qps/limit_cores.cc

@@ -37,14 +37,16 @@
 #include <grpc/support/log.h>
 #include <grpc/support/port_platform.h>
 
-namespace grpc {
-namespace testing {
 
 #ifdef GPR_CPU_LINUX
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
 #include <sched.h>
+
+namespace grpc {
+namespace testing {
+
 int LimitCores(const int* cores, int cores_size) {
   const int num_cores = gpr_cpu_num_cores();
   int cores_set = 0;