SDL, SDL2: SDL{,2}_PATH may be undefined

This commit is contained in:
John Ericson 2019-11-07 15:20:02 -05:00
parent beda0365a6
commit 12a85a7046
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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
}