#ifndef CRASHPAD_UTIL_PROCESS_PROCESS_ID_H_
#define CRASHPAD_UTIL_PROCESS_PROCESS_ID_H_
#include <type_traits>
#include "base/format_macros.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_POSIX)
#include <sys/types.h>
#elif BUILDFLAG(IS_WIN)
#include <windows.h>
#elif BUILDFLAG(IS_FUCHSIA)
#include <zircon/types.h>
#endif
namespace crashpad {
#if BUILDFLAG(IS_POSIX) || DOXYGEN
ProcessID;
constexpr ProcessID kInvalidProcessID = …;
static_assert …;
#define PRI_PROCESS_ID …
#elif BUILDFLAG(IS_WIN)
using ProcessID = DWORD;
constexpr ProcessID kInvalidProcessID = 0;
#define PRI_PROCESS_ID …
#elif BUILDFLAG(IS_FUCHSIA)
using ProcessID = zx_koid_t;
constexpr ProcessID kInvalidProcessID = ZX_KOID_INVALID;
static_assert(std::is_same<ProcessID, int64_t>::value, "Port.");
#define PRI_PROCESS_ID …
#else
#error Port.
#endif
}
#endif