Skip to content

Commit

Permalink
Codechange: stdafx
Browse files Browse the repository at this point in the history
  • Loading branch information
rubidium42 committed Apr 28, 2023
1 parent fbeeb2f commit 10bdd7a
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/stdafx.h
Expand Up @@ -80,7 +80,6 @@
#if defined(__GNUC__) || (defined(__clang__) && !defined(_MSC_VER))
# define NORETURN __attribute__ ((noreturn))
# define CDECL
# define __int64_t long long
/* Warn about functions using 'printf' format syntax. First argument determines which parameter
* is the format string, second argument is start of values passed to printf. */
# define WARN_FORMAT(string, args) __attribute__ ((format (printf, string, args)))
Expand Down Expand Up @@ -308,15 +307,6 @@ typedef uint8_t byte;
typedef unsigned int uint;
#endif

typedef uint8_t uint8;
typedef int8_t int8;
typedef uint16_t uint16;
typedef int16_t int16;
typedef uint32_t uint32;
typedef int32_t int32;
typedef uint64_t uint64;
typedef int64_t int64;

#if !defined(WITH_PERSONAL_DIR)
# define PERSONAL_DIR ""
#endif
Expand All @@ -327,10 +317,10 @@ typedef int64_t int64;
#endif

/* Check if the types have the bitsizes like we are using them */
static_assert(sizeof(uint64) == 8);
static_assert(sizeof(uint32) == 4);
static_assert(sizeof(uint16) == 2);
static_assert(sizeof(uint8) == 1);
static_assert(sizeof(uint64_t) == 8);
static_assert(sizeof(uint32_t) == 4);
static_assert(sizeof(uint16_t) == 2);
static_assert(sizeof(uint8_t) == 1);
static_assert(SIZE_MAX >= UINT32_MAX);

#ifndef M_PI_2
Expand Down

0 comments on commit 10bdd7a

Please sign in to comment.