1. 18 Nov, 2014 3 commits
  2. 17 Nov, 2014 1 commit
  3. 14 Nov, 2014 1 commit
  4. 11 Nov, 2014 3 commits
  5. 08 Nov, 2014 2 commits
  6. 04 Nov, 2014 1 commit
    • acidtonic's avatar
      Corrected code example in coded_stream.h · 2ba455f2
      acidtonic authored
      There is an example at the top of the page which contains code that appears to show a user how to create and serialize a message to a file. However the flags to open the file lack the O_CREAT flag which allows creating the file if it doesn't exist. I was troubleshooting a situation where this snippet was used and compiled, but never created a file.
      2ba455f2
  7. 03 Nov, 2014 2 commits
  8. 01 Nov, 2014 1 commit
  9. 31 Oct, 2014 2 commits
  10. 22 Oct, 2014 1 commit
  11. 21 Oct, 2014 1 commit
  12. 09 Oct, 2014 5 commits
  13. 08 Oct, 2014 1 commit
  14. 03 Oct, 2014 1 commit
  15. 01 Oct, 2014 1 commit
  16. 23 Sep, 2014 1 commit
  17. 22 Sep, 2014 1 commit
  18. 20 Sep, 2014 1 commit
    • William Orr's avatar
      Add support for solaris atomicops · 2d7786cf
      William Orr authored
      This patch adds support for atomic operations on Solaris, on any platform.
      It makes use of the atomic functions made available in Solaris' atomic.h
      header.
      2d7786cf
  19. 19 Sep, 2014 2 commits
  20. 18 Sep, 2014 1 commit
    • Robert Edmonds's avatar
      Fix atomicops build failure on non-Clang · 7432af82
      Robert Edmonds authored
      We cannot use Clang's __has_extension macro unless we really are
      compiling on Clang, which means we cannot use this expression:
      
          #if (defined(__clang__) && __has_extension(c_atomic)))
          // ...
          #endif
      
      On GCC, this generates the following errors:
      
          In file included from ./google/protobuf/stubs/atomicops.h:59:0,
                           from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
          ./google/protobuf/stubs/platform_macros.h:67:41: error: missing binary operator before token "("
             (defined(__clang__) && __has_extension(c_atomic)))
                                                   ^
          In file included from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:0:
          ./google/protobuf/stubs/atomicops.h:196:40: error: missing binary operator before token "("
            (defined(__clang__) && __has_extension(c_atomic))
                                                  ^
      
      Instead, we have to protect the __has_extension expression by only
      executing it when __clang__ is defined:
      
          #if defined(__clang__)
          # if __has_extension(c_atomic)
          // ...
          # endif
          #endif
      7432af82
  21. 14 Sep, 2014 1 commit
    • Robert S. Edmonds's avatar
      Expose generic atomicops on Clang · 628a23ba
      Robert S. Edmonds authored
      The generic atomicops implementation is only exposed if GCC >= 4.7 is
      available, but Clang, where the underlying __atomic built-ins are also
      available, typically only claims to be GCC 4.2. This causes build
      failures when compiling protobuf or the output of protoc's C++ code
      generator on an architecture that needs the generic atomicops
      implementation with Clang.
      
      Clang has a "c_atomic" extension which can be tested for which almost
      does what we want:
      
          C11 atomic operations
      
          Use __has_feature(c_atomic) or __has_extension(c_atomic) to
          determine if support for atomic types using _Atomic is enabled.
          Clang also provides a set of builtins which can be used to implement
          the <stdatomic.h> operations on _Atomic types.
      
      I'm not sure if this guarantees that the GNU atomic builtins (the ones
      with the __atomic prefix) are also available, but in practice this
      should guarantee that Clang is new enough.
      
      With this change in place, Clang generates several diagnostics when
      compiling the generic atomicops implementation. These appear to be bugs
      in the generic atomicops implementation and are not Clang-specific.
      628a23ba
  22. 13 Sep, 2014 1 commit
  23. 04 Sep, 2014 1 commit
  24. 03 Sep, 2014 1 commit
    • huahang's avatar
      fix a compile warning · 27fcf9bf
      huahang authored
      This change fixes the following compiler warning:
      
      warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
      27fcf9bf
  25. 27 Aug, 2014 1 commit
  26. 25 Aug, 2014 1 commit
  27. 20 Aug, 2014 1 commit
  28. 14 Aug, 2014 1 commit