* Update version compatibility stuff -- 2.0.3 is in no way compatible with

2.0.2.
* Minor Tru64 fix.
pull/3335/head
kenton@google.com 16 years ago
parent 9f1752889c
commit a001ed0c03
  1. 1
      configure.ac
  2. 4
      src/Makefile.am
  3. 2
      src/google/protobuf/descriptor.pb.h
  4. 8
      src/google/protobuf/stubs/common.h
  5. 8
      src/gtest/internal/gtest-port.h

@ -7,6 +7,7 @@ AC_PREREQ(2.59)
# * java/pom.xml # * java/pom.xml
# * python/setup.py # * python/setup.py
# * src/google/protobuf/stubs/common.h # * src/google/protobuf/stubs/common.h
# * src/Makefile.am (Update -version-info for LDFLAGS if needed)
AC_INIT([protobuf],[2.0.3-SNAPSHOT],[protobuf@googlegroups.com]) AC_INIT([protobuf],[2.0.3-SNAPSHOT],[protobuf@googlegroups.com])
AC_CONFIG_SRCDIR(src/google/protobuf/message.cc) AC_CONFIG_SRCDIR(src/google/protobuf/message.cc)

@ -55,7 +55,7 @@ nobase_include_HEADERS = \
lib_LTLIBRARIES = libprotobuf.la libprotoc.la lib_LTLIBRARIES = libprotobuf.la libprotoc.la
libprotobuf_la_LIBADD = $(PTHREAD_LIBS) libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
libprotobuf_la_LDFLAGS = -version-info 2:0:0 libprotobuf_la_LDFLAGS = -version-info 3:0:0
libprotobuf_la_SOURCES = \ libprotobuf_la_SOURCES = \
google/protobuf/stubs/common.cc \ google/protobuf/stubs/common.cc \
google/protobuf/stubs/hash.cc \ google/protobuf/stubs/hash.cc \
@ -91,7 +91,7 @@ libprotobuf_la_SOURCES = \
google/protobuf/compiler/parser.cc google/protobuf/compiler/parser.cc
libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
libprotoc_la_LDFLAGS = -version-info 0:0:0 libprotoc_la_LDFLAGS = -version-info 3:0:0
libprotoc_la_SOURCES = \ libprotoc_la_SOURCES = \
google/protobuf/compiler/code_generator.cc \ google/protobuf/compiler/code_generator.cc \
google/protobuf/compiler/command_line_interface.cc \ google/protobuf/compiler/command_line_interface.cc \

@ -7,7 +7,7 @@
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2000002 #if GOOGLE_PROTOBUF_VERSION < 2000003
#error This file was generated by a newer version of protoc which is #error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update #error incompatible with your Protocol Buffer headers. Please update
#error your headers. #error your headers.

@ -87,20 +87,20 @@ namespace internal {
// The minimum library version which works with the current version of the // The minimum library version which works with the current version of the
// headers. // headers.
#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION 2000002 #define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION 2000003
// The minimum header version which works with the current version of // The minimum header version which works with the current version of
// the library. This constant should only be used by protoc's C++ code // the library. This constant should only be used by protoc's C++ code
// generator. // generator.
static const int kMinHeaderVersionForLibrary = 2000002; static const int kMinHeaderVersionForLibrary = 2000003;
// The minimum protoc version which works with the current version of the // The minimum protoc version which works with the current version of the
// headers. // headers.
#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 2000002 #define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 2000003
// The minimum header version which works with the current version of // The minimum header version which works with the current version of
// protoc. This constant should only be used in VerifyVersion(). // protoc. This constant should only be used in VerifyVersion().
static const int kMinHeaderVersionForProtoc = 2000002; static const int kMinHeaderVersionForProtoc = 2000003;
// Verifies that the headers and libraries are compatible. Use the macro // Verifies that the headers and libraries are compatible. Use the macro
// below to call this. // below to call this.

@ -438,11 +438,11 @@ inline size_t GetThreadCount() { return 1; }
// Defines tr1::is_pointer (only needed for Symbian). // Defines tr1::is_pointer (only needed for Symbian).
#ifdef __SYMBIAN32__ #if defined(__SYMBIAN32__) || (defined (__DECCXX) && defined(__osf__))
// Symbian does not have tr1::type_traits, so we define our own is_pointer // Symbian and HP C++ on Tru64 do not have tr1::type_traits, so we define
// These are needed as the Nokia Symbian Compiler cannot decide between // our own is_pointer. These are needed as these compilers cannot decide
// const T& and const T* in a function template. // between const T& and const T* in a function template.
template <bool bool_value> template <bool bool_value>
struct bool_constant { struct bool_constant {

Loading…
Cancel
Save