fix dist rule
[framework/uifw/embryo.git] / src / bin / embryo_cc_osdefs.h
1 /*
2  * Copyright 1998-2003, ITB CompuPhase, The Netherlands.
3  * info@compuphase.com.
4  */
5
6 #ifndef EMBRYO_CC_OSDEFS_H
7 # define EMBRYO_CC_OSDEFS_H
8
9 # ifdef HAVE_STDINT_H
10 #  include <stdint.h>
11 # endif
12
13 /* _MAX_PATH is sometimes called differently and it may be in limits.h instead
14  * stdio.h.
15  */
16 # if !defined _MAX_PATH
17 /* not defined, perhaps stdio.h was not included */
18 #  include <stdio.h>
19 #  if !defined _MAX_PATH
20 /* still undefined, try a common alternative name */
21 #   if defined MAX_PATH
22 #    define _MAX_PATH    MAX_PATH
23 #   else
24 /* no _MAX_PATH and no MAX_PATH, perhaps it is in limits.h */
25 #    include <limits.h>
26 #    if defined PATH_MAX
27 #     define _MAX_PATH  PATH_MAX
28 #    elif defined _POSIX_PATH_MAX
29 #     define _MAX_PATH  _POSIX_PATH_MAX
30 #    else
31 /* everything failed, actually we have a problem here... */
32 #     define _MAX_PATH  4096
33 #    endif
34 #   endif
35 #  endif
36 # endif
37
38 #endif