SDL, SDL2: SDL{,2}_PATH may be undefined
This commit is contained in:
parent
beda0365a6
commit
12a85a7046
|
@ -1,6 +1,6 @@
|
|||
addSDLPath () {
|
||||
if [ -e "$1/include/SDL" ]; then
|
||||
export SDL_PATH="$SDL_PATH $1/include/SDL"
|
||||
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
addSDL2Path () {
|
||||
if [ -e "$1/include/SDL2" ]; then
|
||||
export SDL2_PATH="$SDL2_PATH $1/include/SDL2"
|
||||
export SDL2_PATH="${SDL2_PATH-}${SDL2_PATH:+ }$1/include/SDL2"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue