Index: sc/source/core/data/types.cxx
--- sc/source/core/data/types.cxx.orig
+++ sc/source/core/data/types.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include <cstddef>
+
 #include <types.hxx>
 #include <scmatrix.hxx>
 
