Blender Git Loki

Git Commits -> Revision ba6b83d

Revision ba6b83d by Sergey Sharybin (master)
August 20, 2013, 08:33 (GMT)
Get rid of PATH_MAX in Ghost System X11

The reason of this is because PATH_MAX is not guaranteed
to be defined on all platforms and Hurd doesn't define it.

So either we need to support arbitrary long file path or
we need to define own maximum path length.

The rule here would be:

- If it's not big trouble to support arbitrary long paths
(i.e. in ghost by using std::string instead of char*)
then arbitrary long path shall be implemented.

- For other cases to use PATH_MAX please include BLI_fileops.h
which takes care of making sure PATH_MAX is defined.

Additional change: get rid of own changes made yesterday
which were supposed to make storage.c work fine in cases
PATH_MAX is not define, but on the second though it lead
to unneeded complication of the code.

Thanks Campbell for review!

Commit Details:

Full Hash: ba6b83d63dbd0c22b2a1a46d273d5bd51d039997
SVN Revision: 59316
Parent Commit: 347ba7f
Lines Changed: +36, -36

4 Modified Paths:

/intern/ghost/intern/GHOST_SystemPathsX11.cpp (+28, -22) (Diff)
/source/blender/blenlib/BLI_fileops.h (+6, -0) (Diff)
/source/blender/blenlib/BLI_winstuff.h (+0, -1) (Diff)
/source/blender/blenlib/intern/storage.c (+2, -13) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021