Changeset 3875f106 in mainline


Ignore:
Timestamp:
2018-11-09T13:36:27Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a5fe4f
Parents:
9c75a99d
git-author:
Jiri Svoboda <jiri@…> (2018-10-09 06:34:48)
git-committer:
Jiri Svoboda <jiri@…> (2018-11-09 13:36:27)
Message:

Fix broken XCW. Allow using string.h by cross-platform SW even if _HELENOS_SOURCE needs to be defined.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • tools/xcw/bin/helenos-bld-config

    r9c75a99d r3875f106  
    4747case ".$1" in
    4848(.--cc) extract_field "CC" "$MAKEFILE_COMMON";;
     49(.--ld) extract_field "LD" "$MAKEFILE_COMMON";;
    4950(.--uarch) extract_field "UARCH" "$MAKEFILE_CONFIG";;
    5051(.--endian)
  • tools/xcw/demo/Makefile

    r9c75a99d r3875f106  
    4343
    4444CC = helenos-cc
    45 CFLAGS = -std=gnu99 -Wall `helenos-pkg-config --cflags libgui libdraw libmath`
     45LD = helenos-ld
     46CFLAGS = -std=gnu11 -Wall `helenos-pkg-config --cflags libgui libdraw libmath` \
     47    -D_HELENOS_SOURCE
    4648LIBS = `helenos-pkg-config --libs libgui libdraw libmath`
    4749output = viewer
     
    5557
    5658$(output): $(objects)
    57         $(CC) -o $@ $^ $(LIBS)
     59        $(LD) -o $@ $^ $(LIBS)
    5860
    5961%.o: %.c
  • uspace/lib/c/include/string.h

    r9c75a99d r3875f106  
    3636#define LIBC_STRING_H_
    3737
    38 #ifdef _HELENOS_SOURCE
     38#if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H)
    3939#error Please use str.h and mem.h instead
    4040#endif
Note: See TracChangeset for help on using the changeset viewer.