changeset 24104:0d96215c6e7d

add standard system includes needed in wrapper headers * liboctave/wrappers/base64-wrappers.h, liboctave/wrappers/hash-wrappers.h, liboctave/wrappers/nanosleep-wrapper.h, liboctave/wrappers/octave-popen2.h, liboctave/wrappers/strftime-wrapper.h, liboctave/wrappers/strmode-wrapper.h, liboctave/wrappers/strptime-wrapper.h, liboctave/wrappers/uniconv-wrappers.h: Add missing includes for <stdbool.h>, <stddef.h>, <stdint.h>, <sys/types.h>, and <time.h> where needed for function definitions. * liboctave/wrappers/signal-wrappers.h, liboctave/wrappers/wait-wrappers.h: Sort standard includes for consistency.
author Mike Miller <mtmiller@octave.org>
date Mon, 25 Sep 2017 20:30:42 -0700
parents c995cbb22422
children e3fade9160f3
files liboctave/wrappers/base64-wrappers.h liboctave/wrappers/hash-wrappers.h liboctave/wrappers/nanosleep-wrapper.h liboctave/wrappers/octave-popen2.h liboctave/wrappers/signal-wrappers.h liboctave/wrappers/strftime-wrapper.h liboctave/wrappers/strmode-wrapper.h liboctave/wrappers/strptime-wrapper.h liboctave/wrappers/uniconv-wrappers.h liboctave/wrappers/wait-wrappers.h
diffstat 10 files changed, 47 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/wrappers/base64-wrappers.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/base64-wrappers.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,13 @@
 #if ! defined (octave_base64_wrappers_h)
 #define octave_base64_wrappers_h 1
 
+#if defined (__cplusplus)
+#  include <cstddef>
+#else
+#  include <stdbool.h>
+#  include <stddef.h>
+#endif
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/hash-wrappers.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/hash-wrappers.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,12 @@
 #if ! defined (octave_hash_wrappers_h)
 #define octave_hash_wrappers_h 1
 
+#if defined (__cplusplus)
+#  include <cstddef>
+#else
+#  include <stddef.h>
+#endif
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/nanosleep-wrapper.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/nanosleep-wrapper.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,12 @@
 #if ! defined (octave_nanosleep_wrapper_h)
 #define octave_nanosleep_wrapper_h 1
 
+#if defined (__cplusplus)
+#  include <ctime>
+#else
+#  include <time.h>
+#endif
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/octave-popen2.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/octave-popen2.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,12 @@
 #if ! defined (octave_octave_popen2_h)
 #define octave_octave_popen2_h 1
 
+#if ! defined (__cplusplus)
+#  include <stdbool.h>
+#endif
+
+#include <sys/types.h>
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/signal-wrappers.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/signal-wrappers.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,12 +23,12 @@
 #if ! defined (octave_signal_wrappers_h)
 #define octave_signal_wrappers_h 1
 
-#include <sys/types.h>
-
 #if ! defined (__cplusplus)
 #  include <stdbool.h>
 #endif
 
+#include <sys/types.h>
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/strftime-wrapper.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/strftime-wrapper.h	Mon Sep 25 20:30:42 2017 -0700
@@ -25,8 +25,10 @@
 
 #if defined __cplusplus
 #  include <cstddef>
+#  include <ctime>
 #else
 #  include <stddef.h>
+#  include <time.h>
 #endif
 
 #if defined __cplusplus
--- a/liboctave/wrappers/strmode-wrapper.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/strmode-wrapper.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,8 @@
 #if ! defined (octave_strmode_wrapper_h)
 #define octave_strmode_wrapper_h 1
 
+#include <sys/types.h>
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/strptime-wrapper.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/strptime-wrapper.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,12 @@
 #if ! defined (octave_strptime_wrapper_h)
 #define octave_strptime_wrapper_h 1
 
+#if defined (__cplusplus)
+#  include <ctime>
+#else
+#  include <time.h>
+#endif
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/uniconv-wrappers.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/uniconv-wrappers.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,6 +23,14 @@
 #if ! defined (octave_uniconv_wrappers_h)
 #define octave_uniconv_wrappers_h 1
 
+#if defined (__cplusplus)
+#  include <cstddef>
+#  include <cstdint>
+#else
+#  include <stddef.h>
+#  include <stdint.h>
+#endif
+
 #if defined __cplusplus
 extern "C" {
 #endif
--- a/liboctave/wrappers/wait-wrappers.h	Mon Sep 25 19:23:52 2017 -0700
+++ b/liboctave/wrappers/wait-wrappers.h	Mon Sep 25 20:30:42 2017 -0700
@@ -23,12 +23,12 @@
 #if ! defined (octave_wait_wrappers_h)
 #define octave_wait_wrappers_h 1
 
-#include <sys/types.h>
-
 #if ! defined (__cplusplus)
 #  include <stdbool.h>
 #endif
 
+#include <sys/types.h>
+
 #if defined __cplusplus
 extern "C" {
 #endif