]> git.llucax.com Git - software/libev.git/commitdiff
*** empty log message ***
authorroot <root>
Fri, 23 Nov 2007 11:32:21 +0000 (11:32 +0000)
committerroot <root>
Fri, 23 Nov 2007 11:32:21 +0000 (11:32 +0000)
README.embed
ev.c

index b80a23a92af9f1a8c2773b27b66f7614aeb9f6c9..e987765a9321f447c6a48f011fbb7cd0e683d5d9 100644 (file)
@@ -169,9 +169,14 @@ PREPROCESSOR SYMBOLS
         be used to virtually rename the ev.h header file in case of
         conflicts.
 
+    EV_CONFIG_H
+
+        If EV_STANDALONE isn't 1, this variable can be used to override
+        ev.c's idea of where to find the "config.h" file.
+
     EV_EVENT_H
 
-        Similarly to EV_H, this macro cna be used to override event.c's idea
+        Similarly to EV_H, this macro can be used to override event.c's idea
         of how the event.h header can be found.
 
     EV_PROTOTYPES
diff --git a/ev.c b/ev.c
index 716c3d1628961bf5ecc52038b8efe295194f4023..fd82fbd355a21d563fb81a51c4c4be272e609e4c 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -34,7 +34,11 @@ extern "C" {
 #endif
 
 #ifndef EV_STANDALONE
-# include "config.h"
+# ifdef EV_CONFIG_H
+#  include EV_CONFIG_H
+# else
+#  include "config.h"
+# endif
 
 # if HAVE_CLOCK_GETTIME
 #  ifndef EV_USE_MONOTONIC