[segyio] 290/376: Include stdbool.h
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
jokva-guest pushed a commit to branch debian
in repository segyio.
commit df4de0dc11acf97079474fe260f7dea32725a3bd
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Mon May 8 14:15:25 2017 +0200
Include stdbool.h
---
applications/segyinspect.c | 1 +
lib/include/segyio/segy.h | 8 ++++----
lib/src/segy.c | 1 +
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/applications/segyinspect.c b/applications/segyinspect.c
index 676826e..952aff3 100644
--- a/applications/segyinspect.c
+++ b/applications/segyinspect.c
@@ -1,3 +1,4 @@
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/include/segyio/segy.h b/lib/include/segyio/segy.h
index 99b4e3e..a075fe4 100644
--- a/lib/include/segyio/segy.h
+++ b/lib/include/segyio/segy.h
@@ -1,10 +1,6 @@
#ifndef SEGYIO_SEGY_H
#define SEGYIO_SEGY_H
-#ifdef __cplusplus
-extern "C" {
-#endif // __cplusplus
-
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -13,6 +9,10 @@ extern "C" {
#define SEGY_TEXT_HEADER_SIZE 3200
#define SEGY_TRACE_HEADER_SIZE 240
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
/*
* About signatures:
* If a function returns `int` you can assume the return value is an error
diff --git a/lib/src/segy.c b/lib/src/segy.c
index 68caeb5..fbc1485 100644
--- a/lib/src/segy.c
+++ b/lib/src/segy.c
@@ -20,6 +20,7 @@
#include <assert.h>
#include <limits.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git
More information about the debian-science-commits
mailing list