/* Copyright (C) 2015-2021, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk4getpid.ctr */ #ifndef DK4GETPID_H_INCLUDED /** Avoid multiple inclusions. */ #define DK4GETPID_H_INCLUDED 1 /** @file Get process ID. CRT on Windows: Not used. */ #ifndef DK4CONF_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4conf.h" #else #include #endif #endif #ifndef DK4TYPES_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include #else #include #endif #endif #ifndef DK4ERROR_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include #else #include #endif #endif #if DK4_HAVE_SYS_TYPES_H #ifndef SYS_TYPES_H_INCLUDED #include #define SYS_TYPES_H_INCLUDED 1 #endif #endif #ifndef STDLIB_H_INCLUDED #include #define STDLIB_H_INCLUDED 1 #endif #if DK4_ON_WINDOWS /** Process ID is a DWORD on Windows. */ typedef unsigned long dk4_pid_t; #else /** Use existing pid_t on other systems. */ typedef pid_t dk4_pid_t; #endif #ifdef __cplusplus extern "C" { #endif /** Get current process ID. @return Process ID. */ dk4_pid_t dk4getpid(void); #ifdef __cplusplus } #endif #endif