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.

80 lines
1.6 KiB

  1. /********************/
  2. /* includes systeme */
  3. /********************/
  4. #ifndef FCTSYS_H
  5. #define FCTSYS_H
  6. // For compilers that support precompilation, includes "wx.h".
  7. #include "wx/wxprec.h"
  8. #ifdef __BORLANDC__
  9. #pragma hdrstop
  10. #endif
  11. // for all others, include the necessary headers (this file is usually all you
  12. // need because it includes almost all "standard" wxWindows headers
  13. #ifndef WX_PRECOMP
  14. #include <wx/wx.h>
  15. #endif
  16. #include <stdio.h>
  17. #ifdef __FreeBSD__
  18. #include <stdlib.h>
  19. #else
  20. # ifndef __DARWIN__
  21. # include <malloc.h> // MacOSX (DARWIN): malloc() and free() are in stdlib.h
  22. #endif
  23. #endif
  24. #include <time.h>
  25. #include <math.h>
  26. #include <string.h>
  27. #include <ctype.h>
  28. #ifdef __WXMAC__
  29. #include <Carbon/Carbon.h>
  30. #endif
  31. #ifndef M_PI
  32. #define M_PI 3.141592653
  33. #endif
  34. #define PCB_INTERNAL_UNIT 10000 // PCBNEW internal unit = 1/10000 inch
  35. #define EESCHEMA_INTERNAL_UNIT 1000 // EESCHEMA internal unit = 1/1000 inch
  36. #include "wxstruct.h"
  37. #include "gr_basic.h"
  38. // Old wxWidget compatibility (prior to wxWidget 2.7):
  39. #if ( (wxMAJOR_VERSION < 2) || ((wxMAJOR_VERSION == 2)&& (wxMINOR_VERSION < 7)) )
  40. #define wxFD_OPEN wxOPEN
  41. #define wxFD_SAVE wxSAVE
  42. #define wxFD_OVERWRITE_PROMPT wxOVERWRITE_PROMPT
  43. #define WXK_PAGEUP WXK_PRIOR
  44. #define WXK_PAGEDOWN WXK_NEXT
  45. #endif
  46. #ifdef __UNIX__
  47. #define stricmp strcasecmp
  48. #define strnicmp strncasecmp
  49. #endif
  50. #ifdef __WINDOWS__
  51. #define DIR_SEP '\\'
  52. #define STRING_DIR_SEP wxT("\\")
  53. #else
  54. #define DIR_SEP '/'
  55. #define STRING_DIR_SEP wxT("/")
  56. #endif
  57. #define UNIX_STRING_DIR_SEP wxT("/")
  58. #define WIN_STRING_DIR_SEP wxT("\\")
  59. #ifndef TRUE
  60. #define TRUE ((bool)1)
  61. #define FALSE ((bool)0)
  62. #endif
  63. #endif /* FCTSYS_H */