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.

44 lines
1.6KB

  1. /*******************************************************************************************************************
  2. Copyright (c) 2012 Cycling '74
  3. Permission is hereby granted, free of charge, to any person obtaining a copy of this software
  4. and associated documentation files (the "Software"), to deal in the Software without restriction,
  5. including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
  6. and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
  7. subject to the following conditions:
  8. The above copyright notice and this permission notice shall be included in all copies
  9. or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  11. INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  12. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  13. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
  14. OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  15. *******************************************************************************************************************/
  16. #ifndef GENLIB_COMMON_WIN_H
  17. #define GENLIB_COMMON_WIN_H
  18. #ifdef _MSC_VER
  19. #define GEN_WINDOWS
  20. #endif
  21. #ifdef GEN_WINDOWS
  22. #include <malloc.h>
  23. #include <limits>
  24. typedef __int32 int32_t;
  25. typedef unsigned __int32 uint32_t;
  26. typedef __int64 int64_t;
  27. typedef unsigned __int64 uint64_t;
  28. #define malloc_size _msize
  29. #define __DBL_EPSILON__ (DBL_EPSILON)
  30. #endif
  31. #endif