DPF with Max Gen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.5KB

  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. #ifndef GENLIB_COMMON_WIN_H
  24. #define GENLIB_COMMON_WIN_H
  25. #ifdef _MSC_VER
  26. #define GEN_WINDOWS
  27. #endif
  28. #ifdef GEN_WINDOWS
  29. #include <malloc.h>
  30. #include <limits>
  31. typedef __int32 int32_t;
  32. typedef unsigned __int32 uint32_t;
  33. typedef __int64 int64_t;
  34. typedef unsigned __int64 uint64_t;
  35. #define malloc_size _msize
  36. #define __DBL_EPSILON__ (DBL_EPSILON)
  37. #endif
  38. #endif