From 9ab95c799e3bf4e3642155151165f282fc7563d4 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Mon, 26 Jul 2021 02:00:26 -0400 Subject: [PATCH] move includes inside of guards --- src/include/builtins.h | 6 +++--- src/include/launch.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/include/builtins.h b/src/include/builtins.h index 7e53258..d2d80ea 100644 --- a/src/include/builtins.h +++ b/src/include/builtins.h @@ -12,12 +12,12 @@ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include "array.h" - #ifndef _MYSHELLIN_BUILTINS #define _MYSHELLIN_BUILTINS +#include +#include "array.h" + /** * Check if the command is a builtin or not. * @param command String with the command name to check. diff --git a/src/include/launch.h b/src/include/launch.h index 3a18059..c98383c 100644 --- a/src/include/launch.h +++ b/src/include/launch.h @@ -12,11 +12,11 @@ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "array.h" - #ifndef _MYSHELLIN_LAUNCH #define _MYSHELLIN_LAUNCH +#include "array.h" + /** * Launch programs from the OS. * @param args The arguments to launch.