瀏覽代碼

* Update version compatibility stuff -- 2.0.3 is in no way compatible with
2.0.2.
* Minor Tru64 fix.

kenton@google.com 17 年之前
父節點
當前提交
a001ed0c03
共有 5 個文件被更改,包括 12 次插入11 次删除
  1. 1 0
      configure.ac
  2. 2 2
      src/Makefile.am
  3. 1 1
      src/google/protobuf/descriptor.pb.h
  4. 4 4
      src/google/protobuf/stubs/common.h
  5. 4 4
      src/gtest/internal/gtest-port.h

+ 1 - 0
configure.ac

@@ -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)

+ 2 - 2
src/Makefile.am

@@ -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           \

+ 1 - 1
src/google/protobuf/descriptor.pb.h

@@ -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.

+ 4 - 4
src/google/protobuf/stubs/common.h

@@ -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.

+ 4 - 4
src/gtest/internal/gtest-port.h

@@ -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
-// These are needed as the Nokia Symbian Compiler cannot decide between
-// const T& and const T* in a function template.
+// Symbian and HP C++ on Tru64 do not have tr1::type_traits, so we define
+// our own is_pointer.  These are needed as these compilers cannot decide
+// between const T& and const T* in a function template.
 
 
 template <bool bool_value>
 template <bool bool_value>
 struct bool_constant {
 struct bool_constant {