gen-rack

Create VCV Rack modules from gen~ exports
Log | Files | Refs | README | LICENSE

genlib_common_win.h (2663B)


      1 /*******************************************************************************************************************
      2 Cycling '74 License for Max-Generated Code for Export
      3 Copyright (c) 2016 Cycling '74
      4 The code that Max generates automatically and that end users are capable of exporting and using, and any
      5   associated documentation files (the “Software”) is a work of authorship for which Cycling '74 is the author
      6   and owner for copyright purposes.  A license is hereby granted, free of charge, to any person obtaining a
      7   copy of the Software (“Licensee”) to use, copy, modify, merge, publish, and distribute copies of the Software,
      8   and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
      9 The Software is licensed to Licensee only for non-commercial use. Users who wish to make commercial use of the
     10   Software must contact the copyright owner to determine if a license for commercial use is available, and the
     11   terms and conditions for same, which may include fees or royalties. For commercial use, please send inquiries
     12   to licensing@cycling74.com.  The determination of whether a use is commercial use or non-commercial use is based
     13   upon the use, not the user. The Software may be used by individuals, institutions, governments, corporations, or
     14   other business whether for-profit or non-profit so long as the use itself is not a commercialization of the
     15   materials or a use that generates or is intended to generate income, revenue, sales or profit.
     16 The above copyright notice and this license shall be included in all copies or substantial portions of the Software.
     17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
     18   THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
     19   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
     20   CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
     21   DEALINGS IN THE SOFTWARE.
     22 *******************************************************************************************************************/
     23 
     24 #ifndef GENLIB_COMMON_WIN_H
     25 #define GENLIB_COMMON_WIN_H
     26 
     27 #if defined(_MSC_VER) || defined(__MINGW32__)
     28 	#define GEN_WINDOWS
     29 #endif
     30 
     31 #ifdef GEN_WINDOWS
     32 
     33 	#include <malloc.h>
     34 	#include <limits>
     35 
     36 	typedef __int32 int32_t;
     37 	typedef unsigned __int32 uint32_t;
     38 	typedef __int64 int64_t;
     39 	typedef unsigned __int64 uint64_t;
     40 	#define malloc_size _msize
     41 
     42   #ifndef __MINGW32__
     43 	  #define __DBL_EPSILON__ (DBL_EPSILON)
     44   #endif
     45 
     46 #endif
     47 
     48 #endif
     49 
     50