Skip to content

Commit

Permalink
Removed definition flag in C options that was -D__CLIB2__. This is no…
Browse files Browse the repository at this point in the history
…w clib4, in anycase, the specs file/mcrt option implicitly define this for us. Replaced CLIB2 with CLIB4 where necessary. Did not update the specs files in misc since they are only for guidance
  • Loading branch information
3246251196 committed Oct 20, 2023
1 parent a877cb5 commit e4c07fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile.os4
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ SHARED := $(if $(SHARED),$(SHARED),yes)
STATIC := $(if $(STATIC),$(STATIC),yes)

LARGEDATA :=
OPTIONS += $(LARGEDATA) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__CLIB2__ -Wa,-mregnames -fno-builtin -nostdlib -D_GNU_SOURCE -D_XOPEN_SOURCE -D_USE_GNU -pipe
OPTIONS += $(LARGEDATA) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wa,-mregnames -fno-builtin -nostdlib -D_GNU_SOURCE -D_XOPEN_SOURCE -D_USE_GNU -pipe
OPTIMIZE := -O3 -mregnames -mmultiple -mupdate -ffp-contract=fast -mstrict-align

STABS :=
Expand Down
4 changes: 2 additions & 2 deletions library/shared_library/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ struct Clib4IFace {
/* sys/utsname.h */
int (* uname) (struct utsname *); /* 4084 */

/* END OF CLIB2 VERSION 1.0 */
/* END OF CLIB4 VERSION 1.0 */
/* New function will go below */

int (* futimens) (int fd, const struct timespec times[2]); /* 4098 */
Expand Down Expand Up @@ -1345,4 +1345,4 @@ struct Clib4IFace {

#define Clib4Call(x...) Clib4Call2(x)

#endif
#endif
2 changes: 1 addition & 1 deletion library/shared_library/stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ Clib4Call(times, 4072);
Clib4Call(readv, 4076);
Clib4Call(writev, 4080);
Clib4Call(uname, 4084);
/* END OF CLIB2 VERSION 1.0 */
/* END OF CLIB4 VERSION 1.0 */
/* New function will go below */
Clib4Call(futimens, 4088);
Clib4Call(utimensat, 4092);
Expand Down
4 changes: 2 additions & 2 deletions test_programs/misc/md5sum.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <string.h>
#include <stdint.h>
#include <time.h>
#ifdef __CLIB2__
#ifdef __CLIB4__
#include <endian.h>
#else
#include <machine/endian.h>
Expand Down Expand Up @@ -1124,4 +1124,4 @@ int main(int argc, char **argv) {
return EXIT_SUCCESS;
else
return EXIT_FAILURE;
}
}

0 comments on commit e4c07fb

Please sign in to comment.