Skip to content

Commit

Permalink
fix missing SHARED_DOC_DIR 2
Browse files Browse the repository at this point in the history
SHARED_DIR seems to be present under apple, but not SHARED_DOC_DIR, now
the determination is splitted for these two constants
  • Loading branch information
zebastian committed Sep 30, 2017
1 parent 9176e9e commit f175ee4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mandelbulber2/src/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,16 @@
#ifdef _WIN32
#elif __APPLE__
#define SHARED_DIR QDir::homePath() + "/share/mandelbulber2"
#define SHARED_DOC_DIR QDir::homePath() + "/share/doc/mandelbulber2"
#else
#define SHARED_DIR "/usr/share/mandelbulber2"
#endif
#endif

#ifndef SHARED_DOC_DIR
#ifdef _WIN32
#elif __APPLE__
#define SHARED_DOC_DIR QDir::homePath() + "/share/doc/mandelbulber2"
#else
#define SHARED_DOC_DIR "/usr/share/doc/mandelbulber2"
#endif
#endif
Expand Down

0 comments on commit f175ee4

Please sign in to comment.