Eternal_pain
Anmeldungsdatum: 08.08.2006 Beiträge: 1783 Wohnort: BW/KA
|
Verfasst am: 16.08.2012, 10:02 Titel: winsock2.bi (FBC 0.24.0 (07-30-2012)) |
|
|
Gibt es da neue Header?
Wollte mit den Winsock beispielen etwas experimentieren und die server.bas kompilieren und bekomme die fehlermeldungen in der winsock2.bi
Zitat: | C:\Downloads\FreeBASIC-win32-git-20120730\include\win\winsock2.bi(55) error 99: END IF without IF, found 'end' in 'end if :_'
C:\Downloads\FreeBASIC-win32-git-20120730\include\win\winsock2.bi(55) error 3: Expected End-of-Line, found 'end' in 'end if :_'
|
Irgendwie kommt der wohl mit der Macro und den 'unterstrichen' nicht (mehr) zurecht?!
Code: |
#ifndef FD_CLR
#define FD_CLR(fd,set) _
scope :_
dim i as integer :_
for i = 0 to cptr(fd_set ptr, set)->fd_count-1:_
if( cptr(fd_set ptr, set)->fd_array(i) = fd ) then :_
do while( i < cptr(fd_set ptr, set)->fd_count-1 ) :_
cptr(fd_set ptr, set)->fd_array(i) = cptr(fd_set ptr, set)->fd_array(i+1) :_
i += 1 :_
loop :_
cptr(fd_set ptr, set)->fd_count -= 1 :_
exit for
end if :_
next :_
end scope
#endif
|
_________________
|
|