aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-11-09 13:24:03 -0800
committerConley Owens <cco3@android.com>2011-11-09 16:08:40 -0800
commite6eec1e862a0765a93bba93870fc4bb086865b57 (patch)
treee23931b188a159b104d51665d8c0715bd412e75c
parent2ae00dcfeddad61a0df358a6f91b100f919cdb12 (diff)
downloadgtest-e6eec1e862a0765a93bba93870fc4bb086865b57.tar.gz
Explicitly include stddef in gtest-param-util
In gcc 4.6.1 (default in an Ubuntu 11.10 environment) stddef is not implicitly included by including vector (or other libraries included in this file). This is needed for ptrdiff_t which is used on L123. Change-Id: Id3e22e4e8155b343acaa5672c570d748270b2dce
-rw-r--r--include/gtest/internal/gtest-param-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-param-util.h b/include/gtest/internal/gtest-param-util.h
index 5559ab4..1c1d119 100644
--- a/include/gtest/internal/gtest-param-util.h
+++ b/include/gtest/internal/gtest-param-util.h
@@ -34,6 +34,7 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
+#include <cstddef>
#include <iterator>
#include <utility>
#include <vector>