Skip to content

Commit f4f85e1

Browse files
committed
Do not add current directory in the include directories
1 parent 9aee341 commit f4f85e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
CFLAGS = -g -O2 -Wall
77
CFLAGS += -I./src -I./xutils/build/include
88
LD_LIBS = ./xutils/build/lib/libxutils.a
9-
LIBS = -lpthread
9+
LIBS = -lpthread -lm
1010
NAME = smake
1111
ODIR = ./obj
1212
OBJ = o

src/cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ xbool_t SMake_SerializeIncludes(xarray_t *pArr, const char *pDlmt, char *pOutput
5252
for (i = 0; i < nCount; i++)
5353
{
5454
const char *pData = (const char*)XArray_GetData(pArr, i);
55-
if (!xstrused(pData)) continue;
55+
if (!xstrused(pData) || xstrcmp(pData, "./") || xstrcmp(pData, ".") ) continue;
5656

5757
if (!bStarted) bStarted = XTRUE;
5858
else if (pDlmt) nAvail = xstrncatf(pOutput, nAvail, "%s", pDlmt);

src/info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define SMAKE_VERSION_MAX 1
1313
#define SMAKE_VERSION_MIN 1
14-
#define SMAKE_BUILD_NUMBER 18
14+
#define SMAKE_BUILD_NUMBER 19
1515

1616
#ifndef _SMAKE_VERSION_H_
1717
#define _SMAKE_VERSION_H_

0 commit comments

Comments
 (0)