Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
types redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
h4child committed May 26, 2018
1 parent 146604e commit abed204
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions include/framebot/framebot.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,25 +233,16 @@
# include <stdint.h>
# define scpy(a, b, c) strncpy(a, b, c)
# if UINTPTR_MAX != 0xffffffffffffffff
typedef uint32_t int64_t;
typedef int32_t int64_t;
typedef uint32_t uint64_t;
# endif
#elif _WIN32
# include <Windows.h>
# include <io.h>
# define scpy(a, b, c) strcpy_s(a, c, b)
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef unsigned uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
# if _WIN64
# if !_WIN64
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
# else
typedef unsigned __int32 int64_t;
typedef unsigned __int32 uint64_t;
# endif
#else
# error "Only Windows, Linux and FreeBSD are supported at the moment."
Expand Down

1 comment on commit abed204

@h4child
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate redefinition types

Please sign in to comment.