summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-11-18 22:24:33 +0900
committerMichele Calgaro <[email protected]>2024-11-18 22:24:33 +0900
commit3b0c3b8206964b85bf3716c962d26dd15c4f285f (patch)
tree2f0973dbf96c2892d19a55b6f846f130e7399a48 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h
parentff287d2f48d4f4253bf84f19bd7fe937b61ede45 (diff)
downloadextra-dependencies-master.tar.gz
extra-dependencies-master.zip
Remove uncrustify-trinity.HEADmaster
It is no longer necessary to maintain a customize trinity version. Upstream version can be used as is. Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h102
1 files changed, 0 insertions, 102 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h
deleted file mode 100644
index 619581b0..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/windows_compat.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * @file windows_compat.h
- * Hacks to work with different versions of windows.
- * This is only included if WIN32 is set.
- *
- * @author Ben Gardner
- * @license GPL v2+
- */
-
-#ifndef WINDOWS_COMPAT_H_INCLUDED
-#define WINDOWS_COMPAT_H_INCLUDED
-
-#ifndef NOMINMAX
-#define NOMINMAX
-#endif
-
-#ifdef WIN32
-#include "windows.h"
-#endif
-
-#define HAVE_SYS_STAT_H
-
-#define NO_MACRO_VARARG
-
-typedef char CHAR;
-
-typedef signed char INT8;
-typedef short INT16;
-typedef int INT32;
-
-typedef unsigned char UINT8;
-typedef unsigned short UINT16;
-typedef unsigned int UINT32;
-typedef unsigned long long UINT64;
-
-#ifndef PRIx64
-#define PRIx64 "llx"
-#endif
-
-#ifndef PRIu64
-#define PRIu64 "llu"
-#endif
-
-// Make sure to keep GNU style attributes if they are supported; other
-// included headers may have chosen to rely on them. This is essential
-// if building with libc++ headers, where attributes are relied upon
-// if they are supported (see _LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION).
-#ifndef __GNUC__
-// eliminate GNU's attribute
-#define __attribute__(x)
-#endif
-
-/*
- * MSVC compilers before VC7 don't have __func__ at all; later ones call it
- * __FUNCTION__.
- */
-#ifdef _MSC_VER
-#if _MSC_VER < 1300
-#define __func__ "???"
-#else
-#define __func__ __FUNCTION__
-#endif
-#else // _MSC_VER
-#ifndef __GNUC__
-#define __func__ "???"
-#endif // __GNUC__
-#endif // _MSC_VER
-
-#include "stdio.h"
-#include "string.h"
-
-#undef snprintf
-#define snprintf _snprintf
-
-#undef vsnprintf
-#define vsnprintf _vsnprintf
-
-#undef strcasecmp
-#define strcasecmp _strcmpi
-
-#undef strncasecmp
-#define strncasecmp _strnicmp
-
-#undef strdup
-#define strdup _strdup
-
-#undef fileno
-#define fileno _fileno
-
-// includes for _setmode()
-#ifdef WIN32
-#include <direct.h>
-#include <io.h>
-#endif
-#include <fcntl.h>
-
-// on windows the file permissions have no meaning thus neglect them
-#define mkdir(x, y) _mkdir(x)
-
-#define PATH_SEP '\\'
-
-#endif /* WINDOWS_COMPAT_H_INCLUDED */