Protecting manytomany definitions with a #define.
authorSameer Kumar <skumar2@uiuc.edu>
Tue, 16 Dec 2008 00:07:45 +0000 (00:07 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Tue, 16 Dec 2008 00:07:45 +0000 (00:07 +0000)
src/conv-core/cmidirectmanytomany.h

index 4beaf1eb42b4b21c0204da477c082598f2eb7482..f041f112690f80c1af987dec8a4483b8a18e1376 100644 (file)
@@ -2,6 +2,20 @@
 #ifndef   __CMID_MANY_TO_MANY_H__
 #define   __CMID_MANY_TO_MANY_H__
 
+#ifndef CMI_DIRECT_MANY_TO_MANY_DEFINED
+#define CmiDirect_manytomany_allocate_handle ()
+
+#define CmiDirect_manytomany_initialize_recvbase (a, b, c, d, e, f, g, h)
+
+#define CmiDirect_manytomany_initialize_recv     (a, b, c, d, e, f)
+
+#define CmiDirect_manytomany_initialize_sendbase  (a, b, c, d, e, f, g) 
+
+#define CmiDirect_manytomany_initialize_send (a, b, c, d, e, f)
+
+#define CmiDirect_manytomany_start (a, b) 
+#else
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -11,9 +25,9 @@ extern "C" {
   
   void   CmiDirect_manytomany_initialize_recvbase ( void                 * handle,
                                                    unsigned               tag,
-                                                   char                 * rcvbuf,
                                                    CmiDirectM2mHandler    donecb,
                                                    void                 * context,
+                                                   char                 * rcvbuf,
                                                    unsigned               nranks,
                                                    unsigned               myIdx );
   
@@ -46,4 +60,6 @@ extern "C" {
 }
 #endif
 
-#endif
+#endif    //end CMI_DIRECT_MANY_TO_MANY_DEFINED
+
+#endif    //end __CMID_MANY_TO_MANY_H__