Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
6a10204d
Commit
6a10204d
authored
Mar 08, 2012
by
pliard@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing guard in atomicops MSVC cc file
parent
72afe6ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
atomicops_internals_x86_gcc.cc
src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
+1
-1
atomicops_internals_x86_msvc.cc
src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
+3
-0
No files found.
src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
View file @
6a10204d
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include <cstring>
#include <cstring>
#include
"atomicops.h"
#include
<google/protobuf/stubs/atomicops.h>
// This file only makes sense with atomicops_internals_x86_gcc.h -- it
// This file only makes sense with atomicops_internals_x86_gcc.h -- it
// depends on structs that are defined in that file. If atomicops.h
// depends on structs that are defined in that file. If atomicops.h
...
...
src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
View file @
6a10204d
...
@@ -33,6 +33,8 @@
...
@@ -33,6 +33,8 @@
#include <google/protobuf/stubs/atomicops.h>
#include <google/protobuf/stubs/atomicops.h>
#ifdef GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_X86_MSVC_H_
#include <windows.h>
#include <windows.h>
namespace
google
{
namespace
google
{
...
@@ -103,4 +105,5 @@ Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr,
...
@@ -103,4 +105,5 @@ Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr,
}
// namespace protobuf
}
// namespace protobuf
}
// namespace google
}
// namespace google
#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_X86_MSVC_H_
#endif // GOOGLE_PROTOBUF_NO_THREADSAFETY
#endif // GOOGLE_PROTOBUF_NO_THREADSAFETY
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment