/xbmc/visualizations/Vortex/angelscript/angelscript/source/as_debug.h

http://github.com/xbmc/xbmc · C++ Header · 59 lines · 14 code · 10 blank · 35 comment · 0 complexity · 2780d416519b3d227a52bcdb5026bb7c MD5 · raw file

  1. /*
  2. AngelCode Scripting Library
  3. Copyright (c) 2003-2007 Andreas Jonsson
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any
  6. damages arising from the use of this software.
  7. Permission is granted to anyone to use this software for any
  8. purpose, including commercial applications, and to alter it and
  9. redistribute it freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you
  11. must not claim that you wrote the original software. If you use
  12. this software in a product, an acknowledgment in the product
  13. documentation would be appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and
  15. must not be misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source
  17. distribution.
  18. The original version of this library can be located at:
  19. http://www.angelcode.com/angelscript/
  20. Andreas Jonsson
  21. andreas@angelcode.com
  22. */
  23. //
  24. // as_debug.h
  25. //
  26. #ifndef AS_DEBUG_H
  27. #define AS_DEBUG_H
  28. #ifndef AS_WII
  29. // The Wii SDK doesn't have these, we'll survive without AS_DEBUG
  30. #ifndef _WIN32_WCE
  31. // Neither does WinCE
  32. #if defined(__GNUC__)
  33. // Define mkdir for GNUC
  34. #include <sys/stat.h>
  35. #include <sys/types.h>
  36. #define _mkdir(dirname) mkdir(dirname, S_IRWXU)
  37. #else
  38. #include <direct.h>
  39. #endif
  40. #endif
  41. #endif
  42. #endif