Skip to content
Snippets Groups Projects
Commit 68064016 authored by deuce's avatar deuce
Browse files

Fix build and declare main exter "C"

parent 167f1ad0
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,4 @@ LDFLAGS += -L../source/$(LIBODIR) -lcrt $(CIOLIB-MT_LDFLAGS) $(XPDEV-MT_LDF
$(EXEODIR)/crttest: $(EXEODIR) $(OBJS)
@echo Linking $@
${QUIET}$(CC) $(OBJS) -o $@ $(LDFLAGS) $(MT_LDFLAGS)
${QUIET}$(CXX) $(OBJS) -o $@ $(LDFLAGS) $(MT_LDFLAGS)
......@@ -104,7 +104,6 @@ void dispdacvalues () //display DAC register associated with each palette
for (c0=0;c0<16;c0++)
{
u2=(unsigned)getpalreg(c0)%u1+(u0/256u)*u1;
/* TODO: Next line was disabled! */
//getdacreg(u2,&(char)red,&(char)green,&(char)blue);
printsf(51,4+c0,0x1f," %.3d %.2Xh %.2Xh %.2Xh ",
u2,(unsigned char)red,(unsigned char)green,(unsigned char)blue);
......@@ -158,6 +157,7 @@ void dispascii ()
//this file contains the 8x8 font information for changecharg example
#include "crazy8.cpp"
extern "C" {
int main ()
{
int c0,c1,c2,c3;
......@@ -597,6 +597,7 @@ WARNING: If you are running this demo from a MS-WINDOWS MS-DOS prompt and\n\
crt_gotoxy(0,2);
return(0);
}
}
//By Mrcio Afonso Arimura Fialho
//http://pessoal.iconet.com.br/jlfialho
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment