mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Code modernization: Convert from deprecated C standard library headers
This commit is contained in:
parent
823d80494b
commit
7c4fd382d9
104 changed files with 160 additions and 165 deletions
14
src/util.h
14
src/util.h
|
@ -15,13 +15,13 @@
|
|||
#endif
|
||||
|
||||
#include <libgen.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <array>
|
||||
#include <cinttypes>
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <memory> // std::unique_ptr
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
@ -29,18 +29,18 @@
|
|||
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#else
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#define ASSERT(x) assert(x)
|
||||
#define DEBUG_MSG(x...) fprintf(stderr, x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue