mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
Use C++11 <cstdint> on Windows.
This commit is contained in:
@@ -25,14 +25,7 @@
|
|||||||
#include "DMRData.h"
|
#include "DMRData.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
#else
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#endif
|
|
||||||
|
|
||||||
class CHomebrewDMRIPSC
|
class CHomebrewDMRIPSC
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,12 +26,11 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
#else
|
#else
|
||||||
#include <cstdint>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
4
SHA256.h
4
SHA256.h
@@ -20,11 +20,7 @@
|
|||||||
#ifndef SHA256_H
|
#ifndef SHA256_H
|
||||||
#define SHA256_H
|
#define SHA256_H
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
#else
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#endif
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SHA256_DIGEST_SIZE = 256 / 8
|
SHA256_DIGEST_SIZE = 256 / 8
|
||||||
|
|||||||
Reference in New Issue
Block a user