Skip to content

Commit

Permalink
Use C++11 <cstdint> on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Jan 14, 2016
1 parent 88af4e6 commit 636dd5a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions HomebrewDMRIPSC.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@
#include "DMRData.h"

#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>
#endif

class CHomebrewDMRIPSC
{
Expand Down
3 changes: 1 addition & 2 deletions Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@

#include <cmath>
#include <cassert>
#include <cstdint>

#if defined(_WIN32) || defined(_WIN64)
#include <Windows.h>
typedef unsigned int uint32_t;
#else
#include <cstdint>
#include <unistd.h>
#endif

Expand Down
4 changes: 0 additions & 4 deletions SHA256.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
#ifndef SHA256_H
#define SHA256_H

#if defined(_WIN32) || defined(_WIN64)
typedef unsigned int uint32_t;
#else
#include <cstdint>
#endif

enum {
SHA256_DIGEST_SIZE = 256 / 8
Expand Down

0 comments on commit 636dd5a

Please sign in to comment.