Results 1 to 3 of 3
Hi
I need to have a global variable
PHP Code:
volatile sig_atomic_t int Terminazione = 0 ;
but I get the error
error: two or more data types in declaration specifier
even if ...
- 07-16-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 11
volatile sig_atomic_t
Hi

I need to have a global variable
but I get the errorPHP Code:volatile sig_atomic_t int Terminazione=0;
error: two or more data types in declaration specifier
even if I have included signal.h.
Any suggestions?
- 07-16-2010 #2
In Linux sig_atomic_t is an ordinary int.
From sigset.h we have
and from signal.h we haveCode:typedef int __sig_atomic_t;
Code:typedef __sig_atomic_t sig_atomic_t;
Last edited by gerard4143; 07-16-2010 at 10:59 PM.
Make mine Arch Linux
- 07-17-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 11
Ok
thank you!
That problem is solved!


Reply With Quote