Skip to content

Commit

Permalink
🔧 Util windows (#11)
Browse files Browse the repository at this point in the history
* 🔧 Util windows

* 🔧 Util windows

* 🔧 Util windows

* 🔧 Util windows
  • Loading branch information
valkarias committed Jul 8, 2021
1 parent 4fbc68d commit f1c4cdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions include/gwion_util.h
Expand Up @@ -3,6 +3,11 @@
*/
#ifndef __GWION_UTIL
#define __GWION_UTIL

#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__WIN32))
#define BUILD_ON_WINDOWS
#endif

#include "defs.h"
#include "gwion_thread.h"
#include "err_msg.h"
Expand Down
6 changes: 5 additions & 1 deletion scripts/generate_header.c
Expand Up @@ -4,10 +4,10 @@
#include <string.h>
#include <inttypes.h>


#ifdef BUILD_ON_WINDOWS
#define NUSED
#include "windows_missing.h"
#define __USE_MINGW_ANSI_STDIO 1
#ifdef __MINGW64__
#define SIZET_FMT "%tu"
#else
Expand All @@ -17,6 +17,10 @@
#define SIZET_FMT "%zu"
#endif

#ifndef __USE_MINGW_ANSI_STDIO
#define __USE_MINGW_ANSI_STDIO 1
#endif

#ifdef USE_DOUBLE
static const char* type = "double";
#define SZ sizeof(double)
Expand Down

0 comments on commit f1c4cdb

Please sign in to comment.