When I use this script:
Code:
typedef struct tagWINDOWS {
	HWND DesktopHwnd;
	HWND Current;
} WINDOWS, *WINDOWS;
I get these errors comping up at the ending bracket of my struct:
conflicting declaration 'typedef struct tagWINDOWS*WINDOWS'
'WINDOWS' has a previous declaration as `typedef struct tagWINDOWS WINDOWS'
declaration of `typedef struct tagWINDOWS*WINDOWS'
conflicts with previous declaration `typedef struct tagWINDOWS WINDOWS'
declaration of `typedef struct tagWINDOWS*WINDOWS'
conflicts with previous declaration `typedef struct tagWINDOWS WINDOWS'
[Build Error] [PR.o] Error 1
But, when I use this script:
Code:
 
typedef struct tagWINDOWS {
	HWND DesktopHwnd;
	HWND Current;
}
I get these errors coming up with the begining bracket of the first function I declare after my struct:
new types may not be defined in a return type
extraneous `int' ignored
invalid function declaration
[Build Error] [PR.o] Error 1
What am I doing wrong?

Thanks in advance, August.