Commit 7e5b2f28 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

replace C-style headers with C++ C-compatability headers

parent 86993dec
......@@ -22,7 +22,7 @@
#pragma once
#include <stdio.h>
#include <cstdio>
#include <curl/curl.h>
......
......@@ -23,7 +23,7 @@
#pragma once
#include <stdlib.h>
#include <cstdlib>
#include <jansson.h>
......
......@@ -23,7 +23,7 @@
#pragma once
#include <stddef.h>
#include <cstddef>
#include <villas/dsp/window.hpp>
namespace villas {
......
......@@ -23,8 +23,8 @@
#pragma once
#include <stdio.h>
#include <stdint.h>
#include <cstdio>
#include <cstdint>
#include <jansson.h>
......
......@@ -25,7 +25,7 @@
#include <vector>
#include <stdlib.h>
#include <cstdlib>
#include <jansson.h>
......
......@@ -27,8 +27,8 @@
#pragma once
#include <string.h>
#include <stdint.h>
#include <cstring>
#include <cstdint>
#if WITH_CAP
#include <sys/capability.h>
......
......@@ -25,8 +25,8 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <cstddef>
#include <cstdint>
#include <villas/list.h>
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
......
......@@ -28,7 +28,7 @@
#pragma once
#include <stdbool.h>
#include <cstdbool>
#include <sys/types.h>
#include <pthread.h>
......
......@@ -23,7 +23,7 @@
#pragma once
#include <stdarg.h>
#include <cstdarg>
#include <jansson.h>
......
......@@ -23,10 +23,10 @@
#pragma once
#include <stdio.h>
#include <stdint.h>
#include <cstdio>
#include <cstdint>
#include <time.h>
#include <ctime>
/** We can choose between two periodic task implementations */
//#define PERIODIC_TASK_IMPL NANOSLEEP
......
......@@ -23,10 +23,10 @@
#pragma once
#include <stdio.h>
#include <stdint.h>
#include <cstdio>
#include <cstdint>
#include <time.h>
#include <ctime>
/** Compare two timestamps. Return zero if they are equal */
ssize_t time_cmp(const struct timespec *a, const struct timespec *b);
......
......@@ -23,9 +23,9 @@
#pragma once
#include <stdbool.h>
#include <cstdbool>
#include <cpuid.h>
#include <inttypes.h>
#include <cinttypes>
#ifdef __APPLE__
#include <sys/types.h>
......
......@@ -28,10 +28,10 @@
#include <vector>
#include <signal.h>
#include <stdlib.h>
#include <stdint.h>
#include <cstdlib>
#include <cstdint>
#include <sched.h>
#include <assert.h>
#include <cassert>
#include <sys/types.h>
#include <openssl/sha.h>
......
......@@ -22,12 +22,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <cstdio>
#include <cstdlib>
#include <cstdbool>
#include <cstring>
#include <cmath>
#include <cerrno>
#include <unistd.h>
#include <curl/curl.h>
......
......@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <string.h>
#include <cstring>
#include <villas/compat.h>
#include <villas/buffer.h>
......
......@@ -23,7 +23,7 @@
#include <villas/common.h>
#include <stdlib.h>
#include <cstdlib>
const char * state_print(enum State s)
{
......
......@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <string.h>
#include <cstring>
#include <jansson.h>
#include <unistd.h>
......
......@@ -20,12 +20,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <float.h>
#include <math.h>
#include <time.h>
#include <cmath>
#include <ctime>
#include <villas/utils.hpp>
#include <villas/hist.hpp>
......
......@@ -21,12 +21,12 @@
*********************************************************************************/
#include <sys/utsname.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <cinttypes>
#include <sys/types.h>
#include <sys/types.h>
......
......@@ -22,7 +22,7 @@
#include <dirent.h>
#include <libgen.h>
#include <string.h>
#include <cstring>
#include <unistd.h>
#include <linux/limits.h>
......
......@@ -37,7 +37,7 @@
#include <cstdlib>
#include <cstring>
#include <stdint.h>
#include <cstdint>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
......
......@@ -6,11 +6,11 @@
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <cstdlib>
#include <cstdio>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <cstring>
#include <sys/ioctl.h>
#include <sys/eventfd.h>
......
......@@ -22,8 +22,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include <villas/list.h>
#include <villas/utils.hpp>
......
......@@ -20,8 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include <villas/utils.hpp>
#include <villas/table.hpp>
......
......@@ -21,8 +21,8 @@
*********************************************************************************/
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <ctime>
#include <cerrno>
#include <villas/utils.hpp>
#include <villas/task.h>
......
......@@ -24,16 +24,16 @@
#include <string>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <cstdlib>
#include <cstdio>
#include <cstdint>
#include <cstdbool>
#include <cstdarg>
#include <cstring>
#include <unistd.h>
#include <math.h>
#include <cmath>
#include <pthread.h>
#include <ctype.h>
#include <cctype>
#include <fcntl.h>
#include <openssl/bio.h>
......
......@@ -20,8 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************************/
#include <stdint.h>
#include <string.h>
#include <cstdint>
#include <cstring>
#include <criterion/criterion.h>
#include <villas/utils.hpp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment