Index: emacs/src/unexw32.c
diff -c emacs/src/unexw32.c:1.24 emacs/src/unexw32.c:1.25
*** emacs/src/unexw32.c:1.24 Mon Sep 1 15:45:57 2003
--- emacs/src/unexw32.c Mon Jun 6 19:28:02 2005
***************
*** 325,330 ****
--- 325,333 ----
/* Convert address in executing image to RVA. */
#define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL))
+ #define RVA_TO_PTR(var,section,filedata) \
+ ((void *)(RVA_TO_OFFSET(var,section) + (filedata).file_base))
+
#define PTR_TO_OFFSET(ptr, pfile_data) \
((unsigned char *)(ptr) - (pfile_data)->file_base)
_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs