Enlightenment CVS committal

Author  : rbdpngn
Project : misc
Module  : embrace

Dir     : misc/embrace/src


Modified Files:
        embrace.c 


Log Message:
Added some missing ifdef's and include for portability.

===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/embrace.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- embrace.c   27 Apr 2004 16:36:39 -0000      1.17
+++ embrace.c   2 May 2004 21:07:40 -0000       1.18
@@ -1,5 +1,5 @@
 /*
- * $Id: embrace.c,v 1.17 2004/04/27 16:36:39 tsauerbeck Exp $
+ * $Id: embrace.c,v 1.18 2004/05/02 21:07:40 rbdpngn Exp $
  *
  * Copyright (C) 2004 Embrace project.
  *
@@ -40,7 +40,7 @@
 #include "mailbox.h"
 #include "embrace_plugin.h"
 
-static int last_signal;
+static int last_signal = 0;
 
 /**
  * Copies one string to another, but '~' is expanded.
@@ -668,7 +668,9 @@
 {
        assert (e);
 
+#ifdef USE_DNOTIFY
        last_signal = SIGRTMIN;
+#endif
 
        if (!embrace_load_config (e)) {
                fprintf (stderr, "Cannot load config!\n");
@@ -729,8 +731,10 @@
 
 int embrace_signal_get ()
 {
+#ifdef USE_DNOTIFY
        assert (last_signal >= SIGRTMIN);
        assert (last_signal < SIGRTMAX);
+#endif
 
        return ++last_signal;
 }




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to