vs dont like __typeof

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-03-10 11:05:37 +03:00
parent 956009f8ea
commit e39c53e831
2 changed files with 3 additions and 7 deletions

View File

@ -8,11 +8,7 @@
NASM=nasm
# !endif
all: boot0 boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt
boot0: boot0.s
@echo -^> "$@"
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
all: boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt
boot0af: boot0af.s
@echo -^> "$@"
@ -51,4 +47,4 @@ boot1xalt: boot1xalt.s
@"$(NASM)" $(@F).s -o $(DESTDIR)\$@
clean:
del /f boot0 boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt *~
del /f boot0af boot0ss boot0md boot1h boot1h2 boot1f32 boot1f32alt boot1x boot1xalt *~

View File

@ -184,7 +184,7 @@ VOID XPointer::UpdatePointer()
if (newPlace.YPos < 0) newPlace.YPos = 0;
if (newPlace.YPos > UGAHeight - 1) newPlace.YPos = UGAHeight - 1;
if ( CompareMem(&oldPlace, &newPlace, sizeof(__typeof(oldPlace))) != 0 ) {
if ( CompareMem(&oldPlace, &newPlace, sizeof(__typeof__(oldPlace))) != 0 ) {
Hide();
Draw();
}